-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Angular build warning: Mousetrap commonjs dependency #175
Comments
Hey, thanks for the great idea! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While building my app I get the following warning.
Warning: /home/joey/repositories/detact/webapp/node_modules/angular2-hotkeys/fesm2022/angular2-hotkeys.mjs depends on 'mousetrap'. CommonJS or AMD dependencies can cause optimization bailouts. For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
Mousetrap is used by angular2-hotkeys. I can suppress the warning by adding mousetrap to the angular.json 'allowedCommonJsDependencies' list.
CommonJS increases the bundle size https://angular.io/guide/build#configuring-commonjs-dependencies.
I would like to get rid of using mousetrap as a commonjs dependency.
The text was updated successfully, but these errors were encountered: