commonjs dependencies
w4-hanggi opened this issue · comments
w4-hanggi commented
... src/hmr.ts depends on @angularclass/hmr. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
I got this warning, is there something wrong?
Weston commented
I believe this is a new warning introduced by angular10. I just started seeing it after an upgrading a project to angular 10
Sergio Morcuende commented
@w4-hanggi You can add this dependency to your angular.json in this way to remove de Warning with ng10:
"builder": "@angular-devkit/build-angular:browser",
"options": {
"allowedCommonJsDependencies": [
"hammerjs",
"@angularclass/hmr"
]