Upgrade to Vite 8

What does this MR do and why?

Upgrades Vite to v8.0.0, which ships with Rolldown as the default bundler instead of Rollup.

  • Replaces rollupOptions with rolldownOptions and updates config options to match Rolldown's API (codeSplitting, comments.legal, output.strictExecutionOrder)
  • Patches vite-plugin-ruby to strip its output config so our chunking strategy takes precedence
  • Replaces esbuild with lightningcss in clean_css_assets.mjs (lightningcss is already a Vite 8 dep)
  • Approves lightningcss MPL-2.0 license (new transitive dep via Vite 8)

Things that are not fixed with upgrade

  • Production build still produces result incompatible with production requirements
Edited by Stanislav Lashmanov

Merge request reports

Loading