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(node): support re-exported esm modules in cjs export analysis #28379

Merged
merged 2 commits into from
Mar 5, 2025

Conversation

dsherret
Copy link
Member

@dsherret dsherret commented Mar 3, 2025

Adds support for re-exporting an ES module from a CJS one and then importing the CJS module from ESM. Also fixes a bug where require esm wasn't working in deno compile.

))
.into(),
);
}
Copy link
Member Author

Choose a reason for hiding this comment

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

Fixes require ESM in deno compile.

@dsherret dsherret marked this pull request as ready for review March 4, 2025 15:20
Copy link
Member

@nathanwhit nathanwhit left a comment

Choose a reason for hiding this comment

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

LGTM

@dsherret dsherret merged commit 2292eb1 into denoland:main Mar 5, 2025
18 of 22 checks passed
@dsherret dsherret deleted the fix_require_esm_reexport branch March 5, 2025 21:37
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.

2 participants