We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ac5ae2 commit 6a10267Copy full SHA for 6a10267
packages/vite/src/plugins/replace.ts
@@ -19,7 +19,7 @@ export function ReplacePlugin (): Plugin {
19
}
20
21
22
- if ((vite as any).rolldownVersion) {
+ if (config.isProduction && (vite as any).rolldownVersion) {
23
const { replacePlugin } = await import('rolldown/experimental')
24
return replacePlugin(replaceOptions, { preventAssignment: true })
25
} else {
0 commit comments