winteragency / ngx-viewer

Angular 8+ directive for the Viewer.js library 🔎
https://www.npmjs.com/package/ngx-viewer
MIT License
24 stars 12 forks source link

CommonJS or AMD dependencies cause optimization bailouts #27

Open svenson95 opened 2 years ago

svenson95 commented 2 years ago

I'm not sure, but maybe it's possible to improve the package by import viewer.js via ES Modules.

https://github.com/fengyuanchen/viewerjs/issues/213

to avoid this warning

Warning: C:...\node_modules\ngx-viewer__ivy_ngcc__\fesm2015\ngx-viewer.js depends on 'viewerjs'. CommonJS or AMD dependencies can cause optimization bailouts. For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies