File tree 2 files changed +3
-1
lines changed
angular_devkit/build_angular/src/angular-cli-files/models/webpack-configs
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -468,6 +468,8 @@ export function getCommonConfig(wco: WebpackConfigOptions): Configuration {
468
468
} ,
469
469
{
470
470
test : / \. j s $ / ,
471
+ // Factory files are processed by BO in the rules added in typescript.ts.
472
+ exclude : / ( n g f a c t o r y | n g s t y l e ) \. j s $ / ,
471
473
...buildOptimizerUseRule ,
472
474
} ,
473
475
{
Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ export class WebpackCompilerHost implements ts.CompilerHost {
144
144
if ( ! exists ) {
145
145
// At this point we're only looking at resource files (html/css/scss/etc).
146
146
// If the original was deleted, we should delete the virtual files too.
147
- // If the original it wasn't deleted we should leave them to be overwritten, because webpack
147
+ // If the original wasn't deleted we should leave them to be overwritten, because webpack
148
148
// might begin the loading process before our plugin has re-emitted them.
149
149
for ( const ext of this . _virtualStyleFileExtensions ) {
150
150
const virtualFile = ( fullPath + ext ) as Path ;
You can’t perform that action at this time.
0 commit comments