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
Member

@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#819
    • this can be also simplified without it?

sapphi-red and others added 30 commits December 26, 2024 11:31
Co-authored-by: IWANABETHATGUY <[email protected]>
chore: revert package name change + use non-compact continuous release URLs

chore: update lockfile
sapphi-red and others added 28 commits December 26, 2024 11:50
* feat: use oxc for lowering
* chore: skip modulepreload polyfill test for now
* feat: use transformWithOxc for extractExportsData
* feat: make esbuild optional peer dep
* chore: fix types
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.

5 participants