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

svelte config uses JSDoc comment when typescript was selected npx sv create #310

Closed
jackvanderbilt-visma opened this issue Nov 15, 2024 · 1 comment

Comments

@jackvanderbilt-visma
Copy link

jackvanderbilt-visma commented Nov 15, 2024

The following svelte config was generated while I selected typescript to be used:

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

/** @type {import('@sveltejs/kit').Config} */
const config = {
	// Consult https://svelte.dev/docs/kit/integrations
	// for more information about preprocessors
	preprocess: vitePreprocess(),

	kit: {
		// adapter-auto only supports some environments, see https://svelte.dev/docs/kit/adapter-auto for a list.
		// If your environment is not supported, or you settled on a specific environment, switch out the adapter.
		// See https://svelte.dev/docs/kit/adapters for more information about adapters.
		adapter: adapter()
	}
};

export default config;
@jackvanderbilt-visma jackvanderbilt-visma changed the title svelte config uses JSDoc when typescript was selected npx sv create svelte config uses JSDoc comment when typescript was selected npx sv create Nov 15, 2024
@AdrianGonz97
Copy link
Member

This is expected. The svelte config can only be configured in a .js file. See sveltejs/kit#2576

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants