Skip to content

Svelte

Enabled

This plugin is enabled when there’s a match in dependencies or devDependencies in package.json:

  • svelte

Default configuration

This configuration is added automatically if the plugin is enabled:

{
"svelte": {
"entry": [
"svelte.config.js",
"vite.config.{js,mjs,ts,cjs,mts,cts}",
"src/routes/**/+{page,server,page.server,error,layout,layout.server}{,@*}.{js,ts,svelte}",
"src/hooks.{server,client}.{js,ts}",
"src/params/*.{js,ts}"
]
}
}

Your custom config or entry options override default values, they are not merged.

See Plugins for more details about plugins and their entry and config options.

Generated from source

This page was generated from the svelte plugin source code.

ISC License © 2024 Lars Kappert