-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using Rolldown with Vite v6 #43
base: main
Are you sure you want to change the base?
Conversation
1d231ee
to
2087832
Compare
259bd2a
to
6af67ee
Compare
FYI,
this is by design, if use customResolver in native plugin, there is no performance difference between |
for all |
@IWANABETHATGUY I've made reproductions for the cases other than resolve plugin related ones. (I'm going to make for the resolve related ones now.) |
I fixed the import-meta glob reproduction; it was using |
Can you file these issues on rolldown? |
Made the reproductions for resolve related ones.
Did you mean to quote #43 (comment) instead of #43 (comment), right? |
Sorry, yeah I mean #43 (comment) |
Done 👍 I didn't make an issue for "manifest: cannot use data on Vite side (e.g. css/assets) and needs to be environment-specific" and "does not support vitejs#12786 (reproduction, expected to have console.log preserved in the output)" for now as I'm not sure what the next step is and the issue will be opaque / unactionable. |
066d276
to
04c717f
Compare
2f09b9c
to
66201d6
Compare
db6e5bd
to
504ad37
Compare
commit: |
Maybe we should squash it instead of merge |
…ejs#18240)" This partially reverts commit f2957c8.
9c57bae
to
4753f60
Compare
* feat: use oxc for the scanner and pass non-js files directly to rolldown * feat: use builtin transform for optimizer rolldown * feat: use filter for the plugins for optimizer
Description
Applied changes from #24 and #27 to the main branch after the environment API PR is merged.
Also fixed errors on Windows and cleaned up some unneeded changes.
#24 implemented build-time dep optimization partially, but I didn't include that change in this PR.
e2e test status
❌ to pass test on Windows, oxc-project/oxc-resolver#322 needs to be fixed
useDefineForClassFields: false
is not supported by oxc (rolldown/rolldown#2296, oxc-project/oxc#6735)missing feature list that was supported by esbuild / rollup
names
/originalNames
support [Bug]:names
/originalFileNames
support rolldown#2496: removed related code from Viteoptions.watch
watcher.on('event', listener)
shouldTransformCachedModule
,watchChange
,closeWatcher
this.addWatchFile
meta
on module info: this can be workarounded as it's not part of the public APIsystem
formatoutput
is currently an object instead of an arrayoptions.attributes
forresolveId
hookSourceMap
type does not supporttoString
andtoUrl
: not necessary but better for easier migrationresolveImportMeta
hook: can usetransform
hook for Vite's usecaseoptions.preserveEntrySignatures
: not necessary but nice for smaller bundlesoxc missing feature list that was supported by esbuild
useDefineForClassFields
(transformer: typescript--useDefineForClassFields
oxc-project/oxc#6735)keepNames
: we might not need this for oxc?native plugin incompatibilities
customResolver
optionplayground/backend-integration
, you can see the manifest not containingcss
andassets
field inindex.html
.stringify: 'auto'
support: feat(json)!: addjson.stringify: 'auto'
and make that the default vitejs/vite#18303TODO list for me
bundle
: https://github.com/vuejs/vitepress/blob/68150a6f3349c1741ed5683e3010d9ecea02f3a8/src/node/plugin.ts#L353-L362esbuild.tsconfigRaw
/esbuild.tsconfig
tooxc