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 13 - Library Warning - depends on 'dragula'. CommonJS or AMD dependencies can cause optimization bailouts. #694

Open
dimarafonseca opened this issue Apr 26, 2022 · 0 comments

Comments

@dimarafonseca
Copy link

dimarafonseca commented Apr 26, 2022

Hi team, I have a library using dragula and when we build our application, we get this warning below:
Warning: ...\node_modules\ng2-dragula\fesm2015\ng2-dragula.mjs depends on 'dragula'. CommonJS or AMD dependencies can cause optimization bailouts. For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

Currently, I'm able to add "dragula" to my angular.json as allowedCommonJsDependencies part, but is there any way to provide a version of Dragula using ECMAScript bundle?

  • Read the contributing guidelines
  • Bug reports containing repro steps are likely to be fixed faster
  • Feature requests should be multi-purpose, describe use cases
  • For support requests or questions, please refer to our Slack channel
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