feat: add support for loading svelte config with .ts or .mts

#2804

Pull request

Open
D
dominikg
Jul 23, 2025, 2:12 PM

extension in runtimes that support it.

Should .cjs be removed? The --experimental-modules flag is probably not required anymore either.

TODO: tests

Question: why is the config loader using find-up? As far as i am aware svelte config isn't discovered that way by other tools like sveltekit or vite-plugin-svelte, leading to potential mismatches if there is a stray svelte.config.js file deeper down in the source tree

Info

Assignees None
Reviewers None
Labels None
Milestone None