NG-ZORRO / ng-zorro-antd

Angular UI Component Library based on Ant Design
https://ng.ant.design
MIT License
8.87k stars 3.93k forks source link

CommonJS or AMD dependencies can cause optimization bailouts #6455 #6456

Closed wojtek1150 closed 3 years ago

wojtek1150 commented 3 years ago

Steps to reproduce

When starting application or build with for production there are few warnings that appears after update from v10 to v11

What is expected?

No warnings of course :P

What is actually happening?

Warning: /node_modules/ng-zorro-antd/__ivy_ngcc__/fesm2015/ng-zorro-antd-i18n.js depends on 'date-fns/getISOWeek'.
Warning: /node_modules/ng-zorro-antd/__ivy_ngcc__/fesm2015/ng-zorro-antd-i18n.js depends on 'date-fns/format'. 
Warning: /node_modules/ng-zorro-antd/__ivy_ngcc__/fesm2015/ng-zorro-antd-i18n.js depends on 'date-fns/parse'. 
Environment Info
ng-zorro-antd 11.1.0
angular 11.2.3
Browser Chrome (but not important)

I know that I can use allowedCommonJsDependencies but it's workaround not resolver ;) Also it doesn't exists in v10

wenqi73 commented 3 years ago

Fixed by #6524.