You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why does svelte.config.cjs use CommonJS? Seems like a design that won't age well. It also prevents sharing logic between the dev and build steps. Can't every file in a project of "type": "module" use ES modules?
The text was updated successfully, but these errors were encountered:
This was a limitation of language tools and VS Code, not a deliberate decision. Work is already done to support ESM config files with sveltejs/language-tools#930(feat) support ESM configs, but we're playing it safe for the moment and seeing if there are any bugs with the language tools update before we swap SvelteKit's config over to ESM.
It was a limitation of the language server used in editor tooling I believe. Part of this has been resolved, and I think the intention is to also accept ESM here before too long.
Why does
svelte.config.cjs
use CommonJS? Seems like a design that won't age well. It also prevents sharing logic between the dev and build steps. Can't every file in a project of"type": "module"
use ES modules?The text was updated successfully, but these errors were encountered: