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

Pre process <template lang="…"> in Vue files #17252

Merged
merged 4 commits into from
Mar 17, 2025
Merged

Conversation

RobinMalfait
Copy link
Member

@RobinMalfait RobinMalfait commented Mar 17, 2025

This PR fixes an issue where <template lang="…">…</template> in Vue files should be handled as-if it's the language specified in the lang attribute.

To do this, we added a new Vue pre processor and run the content through the same pre processor logic as we do for other languages.

Fixes: #17211

Test plan

  1. Added a test to verify this works
  2. Existing tests still work

Visually verified against the reproduction in the issue:

Before After
image image

Verified

This commit was signed with the committer’s verified signature.
bdehamer Brian DeHamer

Verified

This commit was signed with the committer’s verified signature.
bdehamer Brian DeHamer
@RobinMalfait RobinMalfait requested a review from a team as a code owner March 17, 2025 13:43

Verified

This commit was signed with the committer’s verified signature.
bdehamer Brian DeHamer

Verified

This commit was signed with the committer’s verified signature.
bdehamer Brian DeHamer
Co-authored-by: Adam Wathan <adam.wathan@gmail.com>
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.

CSS is not included for some Tailwind classes in Pug template (in Vue)
3 participants