File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
packages/@ngtools/webpack/src Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -69,11 +69,13 @@ export class WebpackResourceLoader implements ResourceLoader {
69
69
} ) ;
70
70
71
71
// Restore the parent compilation to the state like it was before the child compilation.
72
- this . _parentCompilation . assets [ outputName ] = assetsBeforeCompilation [ outputName ] ;
73
- if ( assetsBeforeCompilation [ outputName ] === undefined ) {
74
- // If it wasn't there - delete it.
75
- delete this . _parentCompilation . assets [ outputName ] ;
76
- }
72
+ Object . keys ( childCompilation . assets ) . forEach ( ( fileName ) => {
73
+ this . _parentCompilation . assets [ fileName ] = assetsBeforeCompilation [ fileName ] ;
74
+ if ( assetsBeforeCompilation [ fileName ] === undefined ) {
75
+ // If it wasn't there - delete it.
76
+ delete this . _parentCompilation . assets [ fileName ] ;
77
+ }
78
+ } ) ;
77
79
78
80
resolve ( {
79
81
// Hash of the template entry point.
You can’t perform that action at this time.
0 commit comments