Skip to content

Allow usage of svelte.config.ts #2834

@jnoordsij

Description

@jnoordsij

Description

Per sveltejs/kit#13935 loading svelte.config.ts is supported. However, when I use such a file in my project it seems to be undetected by both my IDE tooling and when running svelte-check.

Proposed solution

A quick look lead me to this:

const config =
this.tryGetConfig(file, currentDir, 'js') ||
this.tryGetConfig(file, currentDir, 'cjs') ||
this.tryGetConfig(file, currentDir, 'mjs');

I suspect altering this is a requirement for compatibility, but may not be sufficient. I have not yet had any time to dive into this further, so any assistance is welcome.

Alternatives

No response

Additional Information, eg. Screenshots

Edit: progress on resolving this can be found at #2804.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions