PatrickJS / angular-hmr

:fire: Angular Hot Module Replacement for Hot Module Reloading

Home Page:https://patrickjs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

commonjs dependencies

w4-hanggi opened this issue · comments

... 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?

I believe this is a new warning introduced by angular10. I just started seeing it after an upgrading a project to angular 10

@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"
            ]