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

drop support for svelte.config.cjs #946

Open
dominikg opened this issue Jul 15, 2024 · 1 comment
Open

drop support for svelte.config.cjs #946

dominikg opened this issue Jul 15, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@dominikg
Copy link
Member

Describe the problem

the current code for loading svelte.config still allows svelte.config.cjs to be used. This is a bit convoluted and the original need for adding svelte.config.cjs support (jest compatibility) is largely gone thanks to vitest.

Describe the proposed solution

simplify load config by removing all cjs related code, going forward config must be esm and named svelte.config.js or svelte.config.mjs

Alternatives considered

Dropping it immediately with the current pre-release could be a bit short notice for the few projects that still have a svelte.config.cjs.

We can add a deprecation notice log and remove it in the next major after.

Importance

would make my life easier

@dominikg dominikg added enhancement New feature or request triage Awaiting triage by a project member labels Jul 15, 2024
@dominikg
Copy link
Member Author

If you are a current user of svelte.config.cjs and have a continued need for it, please share here.

@dominikg dominikg removed the triage Awaiting triage by a project member label Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant