CommonJS or AMD dependencies can cause optimization bailouts
Closed this issue · 1 comments
Dzhuneyt commented
Warning: /Users/xxx/projects/xxx/node_modules/.pnpm/ng-qrcode@6.0.0_97c374658fb8cefbe875884a7f473e47/node_modules/ng-qrcode/fesm2015/ng-qrcode.mjs depends on 'qrcode'. CommonJS or AMD dependencies can cause optimization bailouts.
[0] For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
This is the warning that I get when using the latest version of the package ng-qrcode@6.0.0
.
mnahkies commented
Please see discussion over at soldair/node-qrcode#236
You can get rid of the warning by adding this to your angular.json
:
"allowedCommonJsDependencies": [ "qrcode" ]