Skip to content

compilerOptions ignored in svelte.config.ts #16725

@hendrik-huels

Description

@hendrik-huels

Describe the bug

I tried using svelte.config.ts, since SvelteKit now supports it, but my compilerOptions are completely ignored.

Reproduction

The compilerOptions work in svelte.config.js, but not in svelte.config.ts:

import adapter from '@sveltejs/adapter-node';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';

const config = {
	preprocess: vitePreprocess(),
	kit: {
		adapter: adapter(),
		experimental: {
			remoteFunctions: true
		}
	},
	compilerOptions: {
		experimental: {
			async: true
		}
	}
};

Logs

System Info

@sveltejs/kit: ^2.37.1
svelte: ^5.38.7
@sveltejs/vite-plugin-svelte: ^6.1.4

Severity

annoyance

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