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

fix(npm): align Deno importing Node cjs with Node esm importing cjs #15879

Merged

Conversation

dsherret
Copy link
Member

Unfortunately, I don't believe there would be any way for us to make the __esModule/default checks work in a bullet proof way given that we need to analyze named exports ahead of time. Making it work would also probably lead to a lot of complexity that static analysis would fail us on in certain scenarios which would lead to probably requiring exceptions for certain packages. See discussion in #15876.

Closes #15865

Copy link
Contributor

@cjihrig cjihrig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Linter is currently failing. LGTM once the CI passes.

@dsherret dsherret merged commit a3a4760 into denoland:main Sep 12, 2022
@dsherret dsherret deleted the fix_align_deno_importing_node_cjs_with_node branch September 12, 2022 18:29
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 this pull request may close these issues.

Unable to import npm:[email protected]
2 participants