enum-values icon indicating copy to clipboard operation
enum-values copied to clipboard

CommonJS or AMD dependencies can cause optimization bailouts

Open malcomm opened this issue 4 years ago • 1 comments

Angular 10 is now throwing this warning:

WARNING in some.component.ts depends on 'enum-values'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

Just wanted to put this on your radar.

See: https://web.dev/commonjs-larger-bundles/

malcomm avatar Sep 15 '20 20:09 malcomm

I haven't touched typescript and javascript for 3 years and a lot have changed. I tried converting the tsconfig.json to use es6 module system but couldn't make it work due to tests. It ould be awesome if you'd create a PR with the required changes

slavik57 avatar Sep 20 '20 14:09 slavik57