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 a56245e commit f6d1dd5Copy full SHA for f6d1dd5
packages/vite/src/node/plugins/dynamicImportVars.ts
@@ -167,7 +167,10 @@ export async function transformDynamicImport(
167
}
168
169
export function dynamicImportVarsPlugin(config: ResolvedConfig): Plugin {
170
- if (config.experimental.enableNativePlugin === true) {
+ if (
171
+ config.experimental.enableNativePlugin === true &&
172
+ config.command === 'build'
173
+ ) {
174
return nativeDynamicImportVarsPlugin()
175
176
0 commit comments