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

Add missing `.ts` extension in `application.js` example #475

Closed osbre closed 1 month ago

osbre commented 2 months ago

Description 📖

In the latest Vite, the default falls to .js, therefore .ts needs to be explicitly specified.

The Fix 🔨

By updating the example to include the .ts file extension

ElMassimo commented 1 month ago

Hi Ostap!

This is not necessary, as the helper is provided by Vite Ruby explicitly for this purpose, and will add the .ts extension.