File tree 1 file changed +6
-4
lines changed
packages/@ngtools/webpack/src
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -148,10 +148,12 @@ export class WebpackCompilerHost implements ts.CompilerHost {
148
148
const isWindows = process . platform . startsWith ( 'win' ) ;
149
149
for ( const fileName of Object . keys ( this . _files ) ) {
150
150
const stats = this . _files [ fileName ] ;
151
- // If we're on windows, we need to populate with the proper path separator.
152
- const path = isWindows ? fileName . replace ( / \/ / g, '\\' ) : fileName ;
153
- fs . _statStorage . data [ path ] = [ null , stats ] ;
154
- fs . _readFileStorage . data [ path ] = [ null , stats . content ] ;
151
+ if ( stats ) {
152
+ // If we're on windows, we need to populate with the proper path separator.
153
+ const path = isWindows ? fileName . replace ( / \/ / g, '\\' ) : fileName ;
154
+ fs . _statStorage . data [ path ] = [ null , stats ] ;
155
+ fs . _readFileStorage . data [ path ] = [ null , stats . content ] ;
156
+ }
155
157
}
156
158
for ( const dirName of Object . keys ( this . _directories ) ) {
157
159
const stats = this . _directories [ dirName ] ;
You can’t perform that action at this time.
0 commit comments