File tree 1 file changed +2
-1
lines changed
packages/angular_devkit/build_angular/src/angular-cli-files/plugins
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,8 @@ export class CommonJsUsageWarnPlugin {
81
81
// And if the issuer request is not from 'webpack-dev-server', as 'webpack-dev-server'
82
82
// will require CommonJS libraries for live reloading such as 'sockjs-node'.
83
83
if ( mainIssuer ?. name === 'main' && ! issuer ?. userRequest ?. includes ( 'webpack-dev-server' ) ) {
84
- const warning = `${ issuer ?. userRequest } depends on ${ rawRequest } . CommonJS or AMD dependencies can cause optimization bailouts.` ;
84
+ const warning = `${ issuer ?. userRequest } depends on ${ rawRequest } . CommonJS or AMD dependencies can cause optimization bailouts.\n` +
85
+ 'For more info see: https://web.dev/commonjs-larger-bundles' ;
85
86
86
87
// Avoid showing the same warning multiple times when in 'watch' mode.
87
88
if ( ! this . shownWarnings . has ( warning ) ) {
You can’t perform that action at this time.
0 commit comments