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 ac66e40 commit a0c29bfCopy full SHA for a0c29bf
packages/ngtools/webpack/src/resource_loader.ts
@@ -204,8 +204,11 @@ export class WebpackResourceLoader {
204
() => {
205
finalContent = childCompilation.assets[outputFilePath]?.source().toString();
206
207
- delete childCompilation.assets[outputFilePath];
208
- delete childCompilation.assets[outputFilePath + '.map'];
+ for (const { files } of childCompilation.chunks) {
+ for (const file of files) {
209
+ childCompilation.deleteAsset(file);
210
+ }
211
212
},
213
);
214
});
0 commit comments