Skip to content

Commit aede1d7

Browse files
committed
fix css
1 parent 8db8c13 commit aede1d7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/core/src/plugins/EntryChunkPlugin.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ class EntryChunkPlugin {
111111
compilation.hooks.processAssets.tap(PLUGIN_NAME, (assets) => {
112112
if (!this.enabledImportMetaUrlShim) return;
113113

114-
const chunkAsset = Object.keys(assets);
114+
const chunkAsset = Object.keys(assets).filter((name) =>
115+
JS_EXTENSIONS_PATTERN.test(name),
116+
);
115117
for (const name of chunkAsset) {
116118
compilation.updateAsset(name, (old) => {
117119
const oldSource = old.source().toString();

0 commit comments

Comments
 (0)