Skip to content

Commit 83d8ca3

Browse files
test: update
1 parent 638f539 commit 83d8ca3

File tree

6 files changed

+6
-3
lines changed

6 files changed

+6
-3
lines changed

src/loader.js

+1
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ export function pitch(request) {
196196
);
197197
return;
198198
}
199+
199200
this.importModule(
200201
`${this.resourcePath}.webpack[javascript/auto]!=!${request}`,
201202
{

test/cases/chunkFilename-fullhash/expected/webpack-5-importModule/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ __webpack_require__.r(__webpack_exports__);
7373
/******/
7474
/******/ /* webpack/runtime/getFullHash */
7575
/******/ (() => {
76-
/******/ __webpack_require__.h = () => ("acd0bc1ae24d05fdac73")
76+
/******/ __webpack_require__.h = () => ("619e4b98882ea3a2aba3")
7777
/******/ })();
7878
/******/
7979
/******/ /* webpack/runtime/global */
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
const webpack = require('webpack');
22

3-
module.exports = () => webpack.version[0] !== '4';
3+
module.exports = () =>
4+
webpack.version[0] !== '4' && !process.env.EXPERIMENTAL_USE_IMPORT_MODULE;
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
const webpack = require('webpack');
22

3-
module.exports = () => webpack.version[0] !== '4';
3+
module.exports = () =>
4+
webpack.version[0] !== '4' && !process.env.EXPERIMENTAL_USE_IMPORT_MODULE;

0 commit comments

Comments
 (0)