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 85f2db0 commit 7246509Copy full SHA for 7246509
packages/vite/src/node/plugins/oxc.ts
@@ -270,7 +270,10 @@ function resolveTsconfigTarget(target: string | undefined): number | 'next' {
270
}
271
272
export function oxcPlugin(config: ResolvedConfig): Plugin {
273
- if (config.experimental.enableNativePlugin === true) {
+ if (
274
+ config.experimental.enableNativePlugin === true &&
275
+ config.command === 'build'
276
+ ) {
277
return perEnvironmentPlugin('native:transform', (environment) => {
278
const {
279
jsxInject,
0 commit comments