-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
create-svelte generates a CJS output #11086
Comments
Removing this line in - "module": "NodeNext", However, removing the above line causes this TypeScript error.
Reference #11029 |
It doesn't cause the error for me. What command were you running to see that error message or is there anything else I might have to do to reproduce it? |
The reproduction steps are same as before. #11023 Try |
transpileModule treats NodeNext as CommonJS because it doesn't read the package.json. Therefore we need to override it. Also see microsoft/TypeScript#53022 (the filename workaround doesn't work). Fixes #11086
transpileModule treats NodeNext as CommonJS because it doesn't read the package.json. Also see microsoft/TypeScript#53022 (the filename workaround doesn't work). Related to sveltejs/kit#11086
Describe the bug
The default library template generates a CJS output.
This issue started from create-svelte version 5.3.0.
Reproduction
npm i && npm run package
Logs
System Info
Severity
annoyance
Additional Information
No response
The text was updated successfully, but these errors were encountered: