mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-17 19:13:34 +08:00
Depending on CommonJS modules is know to cause optimization bailouts. With this change when running a browser build and scripts optimization is enabled we display a warning. To suppress the warning for a particular package, users can use the `allowedCommonJsDepedencies` builder options. Example: ``` "build": { "builder": "@angular-devkit/build-angular:browser", "options": { ... "allowedCommonJsDepedencies": ["bootstrap"] }, } ``` Reference: TOOL-1328