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

ECMAScript Exports #16

Open
TimUnderhay opened this issue Oct 11, 2020 · 0 comments
Open

ECMAScript Exports #16

TimUnderhay opened this issue Oct 11, 2020 · 0 comments

Comments

@TimUnderhay
Copy link

Thanks for the great little library -- it's very useful!

I use easy-rbac as my authz layer in an Angular 10.x web app. This has brought to my attention that this is packaged as a legacy CommonJS module (I think), which is quite difficult for tree-shakers like webpack to optimise. This causes Angular to complain about the module.

WARNING in /Users/abc/src/xyz/src/app/abc.ts depends on 'easy-rbac'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

Might it be possible to re-spin this module with ECMAScript exports, as well?

Thank you for your consideration.

@TimUnderhay TimUnderhay changed the title Convert to ECMAScript ECMAScript Exports Oct 11, 2020
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