Skip to content

Commit 06c228b

Browse files
committed
fixed import-context-filter test
1 parent 7cc8d68 commit 06c228b

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

test/statsCases/import-context-filter/entry.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
async function getTemplate(templateName) {
22
try {
33
let template = await import(
4-
/* webpackFilter: "^(?:[^.]*(?:\\.(?!noimport(?:\\.js)?$))?)*$" */
4+
/* webpackFilter: "\\.js$" */
5+
/* webpackExclude: "\\.noimport\\.js$" */
56
`./templates/${templateName}`
67
);
78
console.log(template);
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Hash: 33a4de53934d1a739090
1+
Hash: 6cd77e5f0fec5bd9044b
22
Time: Xms
33
Asset Size Chunks Chunk Names
44
0.js 289 bytes 0 [emitted]
@@ -8,5 +8,5 @@ entry.js 6.82 kB 3 [emitted] entry
88
[0] (webpack)/test/statsCases/import-context-filter/templates/bar.js 38 bytes {2} [optional] [built]
99
[1] (webpack)/test/statsCases/import-context-filter/templates/baz.js 38 bytes {1} [optional] [built]
1010
[2] (webpack)/test/statsCases/import-context-filter/templates/foo.js 38 bytes {0} [optional] [built]
11-
[3] (webpack)/test/statsCases/import-context-filter/entry.js 444 bytes {3} [built]
11+
[3] (webpack)/test/statsCases/import-context-filter/entry.js 452 bytes {3} [built]
1212
[4] (webpack)/test/statsCases/import-context-filter/templates lazy ^\.\/.*$ 160 bytes {3} [optional] [built]

0 commit comments

Comments
 (0)