-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Closed
Labels
area: @angular-devkit/build-angulardevkit/build-angular:browserfreq1: lowOnly reported by a handful of users who observe it rarelyOnly reported by a handful of users who observe it rarelyseverity5: regressiontype: bug/fix
Description
Which @angular/* package(s) are the source of the bug?
Don't known / other
Is this a regression?
Yes
Description
In Angular 11.2.14 and in earlier versions there were warnings about CommonJS dependencies after running ng serve like this one:
Warning: /Users/wojtek/Desktop/test/angular-common-js/src/app/app.component.ts depends on 'lodash'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
In Angular 12 these warnings disappeared. There are still no warnings in Angular 13 and Angular 14.
Warnings also disappear in Angular 11 when I add registerLocaleData(localePl); to app.module.ts (branch locale-without-warnings).
Please provide a link to a minimal reproduction of the bug
https://github.com/wojteko22/angular-common-js-warnings
Please provide the exception or error you saw
No response
Please provide the environment you discovered this bug in (run ng version)
No response
Anything else?
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area: @angular-devkit/build-angulardevkit/build-angular:browserfreq1: lowOnly reported by a handful of users who observe it rarelyOnly reported by a handful of users who observe it rarelyseverity5: regressiontype: bug/fix