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

Exports not defined when using require on an entry module that uses ESM exports #617

Closed
remorses opened this issue Dec 22, 2020 · 1 comment

Comments

@remorses
Copy link
Contributor

remorses commented Dec 22, 2020

I am bundling 2 entries from node_modules, one uses ESM, the other uses require on the first

Esbuild (with code splitting enabled) produced a chunk with exports of variables not defined

Reproduction
https://github.com/remorses/esbuild-invalid-export-reproduction

@evanw
Copy link
Owner

evanw commented Dec 29, 2020

Thanks for the test case. I can reproduce the issue.

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

Successfully merging a pull request may close this issue.

2 participants