easy-rbac icon indicating copy to clipboard operation
easy-rbac copied to clipboard

ECMAScript Exports

Open TimUnderhay opened this issue 5 years ago • 0 comments

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 avatar Oct 11 '20 16:10 TimUnderhay