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

Please publish a ESM package #20

Open
Polve opened this issue Nov 28, 2023 · 4 comments
Open

Please publish a ESM package #20

Polve opened this issue Nov 28, 2023 · 4 comments

Comments

@Polve
Copy link

Polve commented Nov 28, 2023

I'm trying to develop an ember application importing bitcoinjs-lib that in turn imports this library (ecpair).

The problem is that the current release of WebPack 5 is unable to transpile ecpair with the following error:

ReferenceError: exports is not defined

and I was unable to find any way to fix the problem.

Is it possible to have a release supporting ESM packaging and "moduleResolution": "Bundler" ?

@junderw
Copy link
Member

junderw commented Nov 28, 2023

Please post reproduction steps.

Webpack 5 works fine for me. I need you to give me a setup / test repo that I can run and have it give me the same error.

@Polve
Copy link
Author

Polve commented Nov 29, 2023

It's an emberjs project using embroider and webpack: if you think it can be useful anyway I will create a repo with a sample

@junderw
Copy link
Member

junderw commented Nov 29, 2023

That would be useful. I need to verify the issue in order to try and fix it.

@Polve
Copy link
Author

Polve commented Dec 3, 2023

Done, here are the instructions to reproduce:

ReferenceError: exports is not defined [...]

A couple notes:

Feel free to ask for any details, thanks

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

2 participants