Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): don't double process factory files
Browse files Browse the repository at this point in the history
  • Loading branch information
filipesilva authored and vikerman committed Sep 27, 2019
1 parent fe54ab8 commit 102cd86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Expand Up @@ -468,6 +468,8 @@ export function getCommonConfig(wco: WebpackConfigOptions): Configuration {
},
{
test: /\.js$/,
// Factory files are processed by BO in the rules added in typescript.ts.
exclude: /(ngfactory|ngstyle)\.js$/,
...buildOptimizerUseRule,
},
{
Expand Down
2 changes: 1 addition & 1 deletion packages/ngtools/webpack/src/compiler_host.ts
Expand Up @@ -144,7 +144,7 @@ export class WebpackCompilerHost implements ts.CompilerHost {
if (!exists) {
// At this point we're only looking at resource files (html/css/scss/etc).
// If the original was deleted, we should delete the virtual files too.
// If the original it wasn't deleted we should leave them to be overwritten, because webpack
// If the original wasn't deleted we should leave them to be overwritten, because webpack
// might begin the loading process before our plugin has re-emitted them.
for (const ext of this._virtualStyleFileExtensions) {
const virtualFile = (fullPath + ext) as Path;
Expand Down

0 comments on commit 102cd86

Please sign in to comment.