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

feat: allow options to be passed to legacy helpers #474

Open josephnle opened 2 months ago

josephnle commented 2 months ago

Description 📖

Allows additional options to be passed to the vite_plugin_legacy rails tag helpers. This way we can do something like:

<%= vite_legacy_typescript_tag('application', nonce: 'abc123') %>

Background 📜

This was happening because the helpers didn't accept **options like the vite_rails helpers do.

The Fix 🔨

Adding **options to the tag helpers