Skip to content

@solidjs/vite-plugin

This plugin is enabled if "@solidjs/vite-plugin" is listed in "dependencies" or "devDependencies" in package.json.

If this plugin is enabled, the following configuration is added automatically:

{
"solidjs-vite-plugin": {
"config": [
"vite.config.{js,mjs,ts,cjs,mts,cts}"
],
"entry": [
"src/entry-server.{tsx,jsx,ts,js,mjs,tsrx}",
"src/entry-client.{tsx,jsx,ts,js,mjs,tsrx}",
"src/{App,app}.{tsx,jsx,ts,js,tsrx}",
"src/Document.{tsx,jsx,tsrx}",
"env.{ts,js}"
]
}
}

Depending on local configuration, plugins may modify the defaults as shown.

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.

Without a Vite config, the default entry patterns are used. With a config, start entries are only added when start is enabled. Paths like start.app replace the matching default, and the ssr option decides which files Solid loads. serverFunctions.configure is added with or without start.

This page was generated from the solidjs-vite-plugin plugin source code.

ISC License © 2026Lars Kappert