ElMassimo / vite_ruby

⚡️ Vite.js in Ruby, bringing joy to your JavaScript experience
https://vite-ruby.netlify.app/
MIT License
1.28k stars 117 forks source link

fix: use ESM by default in new installations #479

Closed ElMassimo closed 1 month ago

ElMassimo commented 1 month ago

Description 📖

This pull request closes #431, by using ESM by default in new installations, and automatically creating vite.config.mts (instead of vite.config.ts) when installing Vite Ruby in a CJS project.

Also linked to Vite's troubleshooting guide in case users run into this while upgrading an older project.

Background 📜

These changes were discussed in: