SSR Options
ssr.external
- Type:
string[] - Related: SSR Externals
Force externalize dependencies for SSR.
ssr.noExternal
- Type:
string | RegExp | (string | RegExp)[] | true - Related: SSR Externals
Prevent listed dependencies from being externalized for SSR. If true, no dependencies are externalized.
ssr.target
- Type:
'node' | 'webworker' - Default:
node
Build target for the SSR server.
ssr.resolve.conditions
- Type:
string[] - Related: Resolve Conditions
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.
ssr.resolve.externalConditions
- Type:
string[] - Default:
[]
Conditions that are used during ssr import (including ssrLoadModule) of externalized dependencies.