Skip to content

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

Merged
RobinMalfait merged 4 commits intomainfrom
fix/issue-17211
Mar 17, 2025
Merged

Pre process <template lang="…"> in Vue files#17252
RobinMalfait merged 4 commits intomainfrom
fix/issue-17211

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
@RobinMalfait RobinMalfait requested a review from a team as a code owner March 17, 2025 13:43
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

3 participants