Skip to content

Migrate to Vite 8 with jsbundling-rails and rails-vite-plugin#41

Draft
skryukov wants to merge 2 commits into
masterfrom
demo/migrate-to-rails-vite-and-vite-8
Draft

Migrate to Vite 8 with jsbundling-rails and rails-vite-plugin#41
skryukov wants to merge 2 commits into
masterfrom
demo/migrate-to-rails-vite-and-vite-8

Conversation

@skryukov

@skryukov skryukov commented Apr 14, 2026

Copy link
Copy Markdown
Member

Summary

This demo PR shows how to migrate the frontend build from esbuild to Vite 8 via rails-vite-plugin, keeping the existing jsbundling-rails based asset pipeline untouched.

Changes

  • Replace esbuild.config.mjs and babel.config.js with a minimal vite.config.js using rails-vite-plugin/jsbundling
  • Rename postcss.config.js / tailwind.config.js to .cjs (Vite runs as ESM)
  • Update bin/dev / dip.yml / .dockerdev/compose.yml to run vite dev instead of esbuild --watch
  • Tweak frontend/controllers/index.js for Vite's glob import API

@skryukov skryukov added the demo Demo branch PR label Apr 14, 2026
@skryukov skryukov force-pushed the demo/migrate-to-rails-vite-and-vite-8 branch from 9bccfd9 to 650b169 Compare April 14, 2026 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

demo Demo branch PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant