diff --git a/packages/rspack-test-tools/tests/builtinCases/rspack/dynamic-import/snapshot/output.snap.txt b/packages/rspack-test-tools/tests/builtinCases/rspack/dynamic-import/snapshot/output.snap.txt index e2cf15326f7..0faba22851a 100644 --- a/packages/rspack-test-tools/tests/builtinCases/rspack/dynamic-import/snapshot/output.snap.txt +++ b/packages/rspack-test-tools/tests/builtinCases/rspack/dynamic-import/snapshot/output.snap.txt @@ -53,9 +53,9 @@ module.exports = webpackAsyncContext; const request = "a"; __webpack_require__.e("child_a_js").then(__webpack_require__.bind(__webpack_require__, /*! ./child/a.js */"./child/a.js")).then(({ a })=>console.log("Literal", a)); __webpack_require__.e("child_b_js").then(__webpack_require__.bind(__webpack_require__, /*! ./child/b.js */"./child/b.js")).then(({ b })=>console.log("Template Literal", b)); -__webpack_require__(/*! ./child */"./child lazy recursive ^\\.\\/.*\\.js$")((`./child/${request}.js`).replace('./child/', './')).then(({ a })=>console.log("context_module_tpl", a)); +__webpack_require__(/*! ./child */"./child lazy recursive ^\\.\\/.*\\.js$")(`./${request}.js`).then(({ a })=>console.log("context_module_tpl", a)); __webpack_require__(/*! ./child */"./child lazy recursive ^\\.\\/.*\\.js$")("./" + request + ".js").then(({ a })=>console.log("context_module_bin", a)); -__webpack_require__(/*! ./child */"./child lazy recursive ^\\.\\/.*\\.js$")(("./child/".concat(request, ".js")).replace('./child/', './')).then(({ a })=>console.log("context_module_concat", a)); +__webpack_require__(/*! ./child */"./child lazy recursive ^\\.\\/.*\\.js$")("./".concat(request, ".js")).then(({ a })=>console.log("context_module_concat", a)); }), },function(__webpack_require__) {