Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Nov 6, 2024

Conversation

josephnle
Copy link
Contributor

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

@ElMassimo ElMassimo force-pushed the main branch 2 times, most recently from d55cc92 to ebe50b8 Compare July 17, 2024 14:43
# Conflicts:
#vite_plugin_legacy/lib/vite_plugin_legacy/tag_helpers.rb
@ElMassimo ElMassimo merged commit 642c178 into ElMassimo:main Nov 6, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants