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

ESM Support #127

Open
codekrafter opened this issue Jan 7, 2021 · 1 comment
Open

ESM Support #127

codekrafter opened this issue Jan 7, 2021 · 1 comment

Comments

@codekrafter
Copy link

codekrafter commented Jan 7, 2021

Right now when using pbf in an angular application (or using a library that depends on pbf), angular emits a warning about using commonjs/amd dependencies, as they cause optimization bailouts and interfere with tree shaking.

Providing an esm module would fix these warnings and allow better optimization.

@measuredweighed
Copy link

A little late to the party, but I ended up creating a fork to generate esm modules which should act as a drop-in replacement for existing implementations in the short term.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants