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: improve CJS Interoperability #50

Merged
merged 1 commit into from
Jan 20, 2024
Merged

fix: improve CJS Interoperability #50

merged 1 commit into from
Jan 20, 2024

Conversation

magic-akari
Copy link
Contributor

No description provided.

@magic-akari
Copy link
Contributor Author

magic-akari commented Jan 20, 2024

This pull request resolves two issues:

  1. Improves interoperability with CommonJS by utilizing the import namespace syntax.
  2. Avoid creating invalid import name bindings.

In JavaScript, not all export names can be used as valid variable names. For example:

const a = 42;

export { a as "🥰" };

@Menci Menci merged commit a79f392 into Menci:main Jan 20, 2024
4 checks passed
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