Skip to content

Commit 6a10267

Browse files
authored
fix(vite): use rolldown replace only in build (#33615)
1 parent 7ac5ae2 commit 6a10267

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vite/src/plugins/replace.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export function ReplacePlugin (): Plugin {
1919
}
2020
}
2121

22-
if ((vite as any).rolldownVersion) {
22+
if (config.isProduction && (vite as any).rolldownVersion) {
2323
const { replacePlugin } = await import('rolldown/experimental')
2424
return replacePlugin(replaceOptions, { preventAssignment: true })
2525
} else {

0 commit comments

Comments
 (0)