We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be89128 commit 9cf055eCopy full SHA for 9cf055e
src/resource_loader.ts
@@ -102,7 +102,13 @@ export class WebpackResourceLoader {
102
reject(err);
103
} else {
104
Object.keys(childCompilation.assets).forEach(assetName => {
105
- if (assetName !== filePath && this._parentCompilation.assets[assetName] == undefined) {
+ // Add all new assets to the parent compilation, with the exception of
106
+ // the file we're loading and its sourcemap.
107
+ if (
108
+ assetName !== filePath
109
+ && assetName !== `${filePath}.map`
110
+ && this._parentCompilation.assets[assetName] == undefined
111
+ ) {
112
this._parentCompilation.assets[assetName] = childCompilation.assets[assetName];
113
}
114
});
0 commit comments