Skip to content
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 usage: Warning CommonJS or AMD dependencies can cause optimization bailouts #2819

Open
gonzalad opened this issue Sep 18, 2024 · 0 comments

Comments

@gonzalad
Copy link

gonzalad commented Sep 18, 2024

Hello,

I am using inputmask 5.0.9 in an Angular 16 application.

When I open the console log, I see the warning

xxx depends on 'inputmask'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

Inputmask is imported in my files with:

import Inputmask from 'inputmask';

This warning is also displayed when using Angular 18 with webpack build system.
It doesn't happen when using vite build system.

  • OS: Windows
  • Browser: Edge 128.0.2739.79
  • Inputmask 5.0.9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant