File tree Expand file tree Collapse file tree
packages/@ngtools/webpack/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -69,11 +69,13 @@ export class WebpackResourceLoader implements ResourceLoader {
6969 } ) ;
7070
7171 // 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+ } ) ;
7779
7880 resolve ( {
7981 // Hash of the template entry point.
You can’t perform that action at this time.
0 commit comments