Skip to content

Commit a1019f8

Browse files
authoredMar 1, 2023
fix(plugin-legacy): no build.target override on SSR build (#12171)
1 parent 1e1cd3b commit a1019f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/plugin-legacy/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ function viteLegacyPlugin(options: Options = {}): Plugin[] {
165165
name: 'vite:legacy-config',
166166

167167
config(config, env) {
168-
if (env.command === 'build') {
168+
if (env.command === 'build' && !config.build?.ssr) {
169169
if (!config.build) {
170170
config.build = {}
171171
}

0 commit comments

Comments
 (0)
Please sign in to comment.