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: add prefix to module names starting with digits #81

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tabarra
Copy link

@tabarra tabarra commented Jan 25, 2025

This solves an issue when adding libraries such as @75lb/deep-merge that results in:

export * from "@75lb/[email protected]";
export { default as 75lbDeepMergeDefault } from "@75lb/[email protected]";
// Error: An identifier or keyword cannot immediately follow a numeric literal.(1351)

Checking for modules starting with a digit and prefixing them with a should solve the issue, even if not a perfect solution.
I have not tested the code.

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.

1 participant