We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8db8c13 commit aede1d7Copy full SHA for aede1d7
packages/core/src/plugins/EntryChunkPlugin.ts
@@ -111,7 +111,9 @@ class EntryChunkPlugin {
111
compilation.hooks.processAssets.tap(PLUGIN_NAME, (assets) => {
112
if (!this.enabledImportMetaUrlShim) return;
113
114
- const chunkAsset = Object.keys(assets);
+ const chunkAsset = Object.keys(assets).filter((name) =>
115
+ JS_EXTENSIONS_PATTERN.test(name),
116
+ );
117
for (const name of chunkAsset) {
118
compilation.updateAsset(name, (old) => {
119
const oldSource = old.source().toString();
0 commit comments