Skip to content

fix(swcPlugin): also disable oxc on Vite 8 - #920

Open
edenbuilds wants to merge 1 commit into
alex8088:masterfrom
edenbuilds:fix/swc-plugin-disable-oxc
Open

fix(swcPlugin): also disable oxc on Vite 8#920
edenbuilds wants to merge 1 commit into
alex8088:masterfrom
edenbuilds:fix/swc-plugin-disable-oxc

Conversation

@edenbuilds

Copy link
Copy Markdown

Summary

  • Vite 8 moved the default transform path to Oxc. swcPlugin only set esbuild: false, which is ignored and prints the oxc warning (swcPlugin disables esbuild but not oxc #916).
  • Disable both esbuild and oxc when SWC is the transform for the plugin.

Test plan

  • swcPlugin() config no longer warns under Vite 8
  • SWC still transforms TS/decorators as before
  • CI on PR

Made with Cursor

Vite 8 defaults transform to Oxc; esbuild:false alone is ignored and
warns. SWC should disable both. Fixes alex8088#916.

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

1 participant