From ee8d17fe91cc05dcc8af11f29fcd44b40a54d7c4 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Tue, 30 Jul 2019 09:26:16 +0200 Subject: [PATCH] fix(@angular-devkit/build-angular): escape dot in js extensions to match literally Closes #15195 --- .../src/angular-cli-files/models/webpack-configs/common.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/angular_devkit/build_angular/src/angular-cli-files/models/webpack-configs/common.ts b/packages/angular_devkit/build_angular/src/angular-cli-files/models/webpack-configs/common.ts index c393254f507a..9afad63c7cc3 100644 --- a/packages/angular_devkit/build_angular/src/angular-cli-files/models/webpack-configs/common.ts +++ b/packages/angular_devkit/build_angular/src/angular-cli-files/models/webpack-configs/common.ts @@ -403,11 +403,11 @@ export function getCommonConfig(wco: WebpackConfigOptions): Configuration { parser: { system: true }, }, { - test: /[\/\\]hot[\/\\]emitter.js$/, + test: /[\/\\]hot[\/\\]emitter\.js$/, parser: { node: { events: true } }, }, { - test: /[\/\\]webpack-dev-server[\/\\]client[\/\\]utils[\/\\]createSocketUrl.js$/, + test: /[\/\\]webpack-dev-server[\/\\]client[\/\\]utils[\/\\]createSocketUrl\.js$/, parser: { node: { querystring: true } }, }, { @@ -416,7 +416,7 @@ export function getCommonConfig(wco: WebpackConfigOptions): Configuration { }, { test: /\.js$/, - exclude: /(ngfactory|ngstyle).js$/, + exclude: /(ngfactory|ngstyle)\.js$/, enforce: 'pre', ...sourceMapUseRule, },