feat: Vite 8 support and Rolldown/Oxc migration#138
Open
semoal wants to merge 1 commit intoaxe-me:mainfrom
Open
feat: Vite 8 support and Rolldown/Oxc migration#138semoal wants to merge 1 commit intoaxe-me:mainfrom
semoal wants to merge 1 commit intoaxe-me:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This backports Vite 8 support to
vite-plugin-nodeand aligns plugin internals/docs with the Vite 8 toolchain (Rolldown + Oxc), while keeping SWC as an opt-in path.Why this backport
Vite 8 switched core internals from Rollup/esbuild to Rolldown/Oxc. The plugin still carried Vite 7-era config and terminology (
rollupOptions,esbuilddefaults), which creates drift and deprecation risk for users upgrading to Vite 8.What changed
1) Vite 8 compatibility and version alignment
pnpm-workspace.yaml).8.0.0(packages/vite-plugin-node/package.json).2) Config migration for Vite 8
build.rollupOptionstobuild.rolldownOptions.esbuildto disablingoxc:plugincConfig.esbuild = false->plugincConfig.oxc = false.3) Compiler mode/API cleanup
SupportedTSCompilerchanged from'esbuild' | 'swc'to'vite' | 'swc'.'vite'(Vite default transformer pipeline).4) Output format constraints for Rolldown
amd,system,systemjscjs,es,iife,umd,commonjs,esm,module5) SWC transform plugin cleanup
@rollup/pluginutilsusage withcreateFilterexported byvite.@rollup/pluginutilsdependency.6) TypeScript build config update
moduleResolution: "NodeNext"module: "NodeNext"7) Documentation/changelog
8.x.x -> 8.x.xmapping row in both README files.8.0.0changelog entry with breaking changes and migration notes.Breaking changes
tsCompilerno longer accepts'esbuild'; use'vite'or'swc'.outputFormatno longer acceptsamd,system,systemjs.Validation
Ran in this branch:
pnpm --filter vite-plugin-node lint✅pnpm --filter vite-plugin-node build-dist✅pnpm linkand tested the HMR and build command in our monorepo with a large API powered by Fastify ✅Branch / commit
backport/vite8-rolldown-oxccdbc163