Skip to content

Commit d200193

Browse files
committed
fix(@angular/cli): use inline sourcemaps in test
Fix angular#6737
1 parent 64e6b94 commit d200193

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

packages/@angular/cli/models/webpack-configs/browser.ts

+9
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,15 @@ export function getBrowserConfig(wco: WebpackConfigOptions) {
4242
}));
4343
}
4444

45+
if (buildOptions.sourcemaps) {
46+
extraPlugins.push(new webpack.SourceMapDevToolPlugin({
47+
filename: '[file].map[query]',
48+
moduleFilenameTemplate: '[resource-path]',
49+
fallbackModuleFilenameTemplate: '[resource-path]?[hash]',
50+
sourceRoot: 'webpack:///'
51+
}));
52+
}
53+
4554
return {
4655
plugins: [
4756
new HtmlWebpackPlugin({

packages/@angular/cli/models/webpack-configs/common.ts

-9
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,6 @@ export function getCommonConfig(wco: WebpackConfigOptions) {
6464
extraPlugins.push(new ProgressPlugin({ profile: buildOptions.verbose, colors: true }));
6565
}
6666

67-
if (buildOptions.sourcemaps) {
68-
extraPlugins.push(new webpack.SourceMapDevToolPlugin({
69-
filename: '[file].map[query]',
70-
moduleFilenameTemplate: '[resource-path]',
71-
fallbackModuleFilenameTemplate: '[resource-path]?[hash]',
72-
sourceRoot: 'webpack:///'
73-
}));
74-
}
75-
7667
if (buildOptions.showCircularDependencies) {
7768
extraPlugins.push(new CircularDependencyPlugin({
7869
exclude: /(\\|\/)node_modules(\\|\/)/

0 commit comments

Comments
 (0)