Closed
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