ngx-viewer icon indicating copy to clipboard operation
ngx-viewer copied to clipboard

CommonJS or AMD dependencies cause optimization bailouts

Open svenson95 opened this issue 3 years ago • 0 comments

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

svenson95 avatar Jul 16 '22 07:07 svenson95