Skip to content

fix: disable oxc transformer for rolldown-vite compatibility#337

Open
Mimori256 wants to merge 1 commit intounplugin:mainfrom
Mimori256:patch-1
Open

fix: disable oxc transformer for rolldown-vite compatibility#337
Mimori256 wants to merge 1 commit intounplugin:mainfrom
Mimori256:patch-1

Conversation

@Mimori256
Copy link
Copy Markdown

Description

Add oxc: false to the Vite config hook to suppress the warning emitted by rolldown-vite.

rolldown-vite replaces esbuild with Oxc as the default transformer, so esbuild: false alone no longer disables the default transformation and causes the following
warning:

  esbuild option is set to false, but oxc option was not set to false. esbuild: false does not have
  effect any more. If you want to disable the default transformation, which is now handled by Oxc, please
  set oxc: false instead.

esbuild: false is kept for compatibility with standard Vite.

Linked Issues

fixes #210

@bolt-new-by-stackblitz
Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Set oxc: false for rolldown-vite

1 participant