-
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 |
chore: revert package name change + use non-compact continuous release URLs chore: update lockfile
cac6eb8
to
665f619
Compare
Co-authored-by: 翠 / green <[email protected]>
…ejs#18240)" This partially reverts commit f2957c8.
665f619
to
f39f6c0
Compare
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
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?improvements needed later on Vite side
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#18303createIdResolver
as wellTODO list for me
bundle
: https://github.com/vuejs/vitepress/blob/68150a6f3349c1741ed5683e3010d9ecea02f3a8/src/node/plugin.ts#L353-L362esbuild.tsconfigRaw
/esbuild.tsconfig
tooxc