Skip to content
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

fix: support plugin-legacy #80

Draft
wants to merge 102 commits into
base: rolldown-v6
Choose a base branch
from

Conversation

hi-ogawa
Copy link

@hi-ogawa hi-ogawa commented Jan 6, 2025

Related to rolldown/rolldown#2387, I'm experimenting with running systemjs transform inside legacy plugin as it already has babel plugin transform.

I found a few things rolldown is missing as rollup compat. Not working yet, but it looks doable by working around on plugin side.

rollup compat issues

  • missing "system" format
    • we can do "esm -> system" transform per chunk (e.g. by babel)
  • multi output format build
  • bundle[filename] = legacyPolyfillChunk to add an entire chunk is not supported
    • emitFile({ type: "asset" }) is enough?
  • how to track outputToChunkFileNameToPolyfills, which relies on object identity and mutation of js plugin arguments?
    • can use a simpler way to differentiate modern/legacy build?
  • option object mutation opts.__vite_skip_esbuild__, __vite_force_terser__, etc...
  • missing meta.chunks in renderChunk(..., meta) [Tracking] Rollup Plugin Compat Status rolldown/rolldown#819
    • this can be also simplified without it?

Sorry, something went wrong.

sapphi-red and others added 30 commits December 26, 2024 11:31

Verified

This commit was signed with the committer’s verified signature.
sapphi-red 翠 / green
Co-authored-by: underfin <likui.underfin@gmail.com>

Verified

This commit was signed with the committer’s verified signature.
sapphi-red 翠 / green
Co-authored-by: underfin <likui.underfin@gmail.com>

Verified

This commit was signed with the committer’s verified signature.
sapphi-red 翠 / green
Co-authored-by: underfin <likui.underfin@gmail.com>

Verified

This commit was signed with the committer’s verified signature.
sapphi-red 翠 / green
Co-authored-by: underfin <likui.underfin@gmail.com>

Partially verified

This commit is signed with the committer’s verified signature.
sapphi-red’s contribution has been verified via GPG key.
We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.

Partially verified

This commit is signed with the committer’s verified signature.
sapphi-red’s contribution has been verified via GPG key.
We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.
2cf0eb2 fe71cbc

Co-authored-by: IWANABETHATGUY <iwanabethatguy@qq.com>

Partially verified

This commit is signed with the committer’s verified signature.
sapphi-red’s contribution has been verified via GPG key.
We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.

Partially verified

This commit is signed with the committer’s verified signature.
sapphi-red’s contribution has been verified via GPG key.
We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.

Partially verified

This commit is signed with the committer’s verified signature.
sapphi-red’s contribution has been verified via GPG key.
We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.

Partially verified

This commit is signed with the committer’s verified signature.
sapphi-red’s contribution has been verified via GPG key.
We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.

Partially verified

This commit is signed with the committer’s verified signature.
sapphi-red’s contribution has been verified via GPG key.
We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.
Co-authored-by: IWANABETHATGUY <iwanabethatguy@qq.com>

Partially verified

This commit is signed with the committer’s verified signature.
sapphi-red’s contribution has been verified via GPG key.
We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.
…ejs#52) (vitejs#53)

Co-authored-by: IWANABETHATGUY <iwanabethatguy@qq.com>

Partially verified

This commit is signed with the committer’s verified signature.
sapphi-red’s contribution has been verified via GPG key.
We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.

Partially verified

This commit is signed with the committer’s verified signature.
sapphi-red’s contribution has been verified via GPG key.
We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.

Verified

This commit was signed with the committer’s verified signature.
sapphi-red 翠 / green

Verified

This commit was signed with the committer’s verified signature.
sapphi-red 翠 / green
…ling

Verified

This commit was signed with the committer’s verified signature.
sapphi-red 翠 / green
…ugin

Verified

This commit was signed with the committer’s verified signature.
sapphi-red 翠 / green

Verified

This commit was signed with the committer’s verified signature.
sapphi-red 翠 / green

Verified

This commit was signed with the committer’s verified signature.
sapphi-red 翠 / green
…tions`

Verified

This commit was signed with the committer’s verified signature.
sapphi-red 翠 / green

Verified

This commit was signed with the committer’s verified signature.
sapphi-red 翠 / green

Verified

This commit was signed with the committer’s verified signature.
sapphi-red 翠 / green

Verified

This commit was signed with the committer’s verified signature.
sapphi-red 翠 / green

Verified

This commit was signed with the committer’s verified signature.
sapphi-red 翠 / green

Partially verified

This commit is signed with the committer’s verified signature.
sapphi-red’s contribution has been verified via GPG key.
We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.
Co-authored-by: IWANABETHATGUY <iwanabethatguy@qq.com>

Verified

This commit was signed with the committer’s verified signature.
sapphi-red 翠 / green

Verified

This commit was signed with the committer’s verified signature.
sapphi-red 翠 / green
chore: revert package name change + use non-compact continuous release URLs

chore: update lockfile

Verified

This commit was signed with the committer’s verified signature.
sapphi-red 翠 / green

Verified

This commit was signed with the committer’s verified signature.
sapphi-red 翠 / green
sapphi-red and others added 23 commits December 26, 2024 11:51

Verified

This commit was signed with the committer’s verified signature.
sapphi-red 翠 / green

Verified

This commit was signed with the committer’s verified signature.
sapphi-red 翠 / green
* feat: use oxc for lowering
* chore: skip modulepreload polyfill test for now

Verified

This commit was signed with the committer’s verified signature.
sapphi-red 翠 / green
* feat: use transformWithOxc for extractExportsData
* feat: make esbuild optional peer dep
* chore: fix types

Verified

This commit was signed with the committer’s verified signature.
sapphi-red 翠 / green

Verified

This commit was signed with the committer’s verified signature.
sapphi-red 翠 / green

Verified

This commit was signed with the committer’s verified signature.
sapphi-red 翠 / green

Verified

This commit was signed with the committer’s verified signature.
sapphi-red 翠 / green

Verified

This commit was signed with the committer’s verified signature.
sapphi-red 翠 / green

Verified

This commit was signed with the committer’s verified signature.
sapphi-red 翠 / green

Verified

This commit was signed with the committer’s verified signature.
sapphi-red 翠 / green

Verified

This commit was signed with the committer’s verified signature.
sapphi-red 翠 / green

Verified

This commit was signed with the committer’s verified signature.
sapphi-red 翠 / green

Verified

This commit was signed with the committer’s verified signature.
sapphi-red 翠 / green

Verified

This commit was signed with the committer’s verified signature.
sapphi-red 翠 / green

Verified

This commit was signed with the committer’s verified signature.
sapphi-red 翠 / green

Verified

This commit was signed with the committer’s verified signature.
sapphi-red 翠 / green

Verified

This commit was signed with the committer’s verified signature.
sapphi-red 翠 / green

Verified

This commit was signed with the committer’s verified signature.
sapphi-red 翠 / green

Verified

This commit was signed with the committer’s verified signature.
sapphi-red 翠 / green

Verified

This commit was signed with the committer’s verified signature.
sapphi-red 翠 / green

Verified

This commit was signed with the committer’s verified signature.
sapphi-red 翠 / green
it's now a dep

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
@hi-ogawa hi-ogawa force-pushed the fix-legacy-systemjs branch from bd2f275 to e67953d Compare January 7, 2025 03:10
@sapphi-red sapphi-red force-pushed the rolldown-v6 branch 2 times, most recently from 3b78414 to 794aea0 Compare January 24, 2025 11:44
@sapphi-red sapphi-red force-pushed the rolldown-v6 branch 2 times, most recently from 45eceea to 82737df Compare March 4, 2025 02:03
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.

None yet

5 participants