-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
bug: always create main with cjs extension #18648
Conversation
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 70d2e77. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this branch ✅ Successfully ran 1 targetSent with 💌 from NxCloud. |
This only affects the svelte generator? Yeah should be OK I guess! |
The Svelte generator is the only one that uses the It wouldn't be a bad idea for Storybook to just remove the option and always create the file with a |
I'll bring it up with the team, thanks for the suggestion! |
I'm pretty sure with our change in 7.0 ( |
@benmccann @ndelangen Should we patch this back to 6.5? |
Yes, please |
I'd say this change should be released in 6.5 and then undone for 7.0.0, given @ndelangen's explanation with |
bug: always create main with cjs extension
Issue: #9854
What I did
Fixed an issue in
npx sb init
for SvelteKit projectsWhat extension
svelte.config.js
uses is irrelevant. Storybook doesn't support ESM, so you have to use the.cjs
extension ifpackage.json
contains"type": "module"
(which all new SvelteKit projects do). Just always using.cjs
is easiest and will always workHow to test
If your answer is yes to any of these, please make sure to include it in your PR.