Skip to content

Comments

fix: support plugin-legacy#80

Closed
hi-ogawa wants to merge 102 commits intovitejs:rolldown-v6from
hi-ogawa:fix-legacy-systemjs
Closed

fix: support plugin-legacy#80
hi-ogawa wants to merge 102 commits intovitejs:rolldown-v6from
hi-ogawa:fix-legacy-systemjs

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?

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
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