string[]
Force externalize dependencies for SSR.
string | RegExp | (string | RegExp)[] | true
Prevent listed dependencies from being externalized for SSR. If true
, no dependencies are externalized.
'node' | 'webworker'
node
Build target for the SSR server.
string[]
Defaults to the the root resolve.conditions
.
These conditions are used in the plugin pipeline, and only affect non-externalized dependencies during the SSR build. Use ssr.resolve.externalConditions
to affect externalized imports.
string[]
[]
Conditions that are used during ssr import (including ssrLoadModule
) of externalized dependencies.
© 2019–present, Yuxi (Evan) You and Vite contributors
Licensed under the MIT License.
https://vitejs.dev/config/ssr-options