Skip to content

Conversation

@yyx990803
Copy link
Member

@yyx990803 yyx990803 commented May 5, 2023

The case occurs with Vue 3 generics usage but is technically possible in other scenarios as well. E.g. for <script foo=">">console.log(1)</script>, the previous regex matches ">console.log(1) as the script content and causes a esbuild parse error.

ref: vuejs/core#8171

This PR uses a more complex regex that accounts for arbitrary attributes on the <script tag>. Also refactored the logic to use a single regex for both HTML and HTML-like file types.

…s ">"

The case occurs with Vue 3 generics usage but is technically possible in other scenarios as well

ref: vuejs/core#8171
@bolt-new-by-stackblitz
Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@patak-dev
Copy link
Member

/ecosystem-ci run

@vite-ecosystem-ci
Copy link

vite-ecosystem-ci bot commented May 5, 2023

📝 Ran ecosystem CI: Open

suite result
astro ✅ success
histoire ✅ success
iles ✅ success
ladle ✅ success
laravel ✅ success
marko ✅ success
nuxt ❌ failure
previewjs ✅ success
qwik ✅ success
rakkas ✅ success
sveltekit ✅ success
vite-plugin-ssr ❌ failure
vite-plugin-react ✅ success
vite-plugin-react-pages ✅ success
vite-plugin-react-swc ✅ success
vite-plugin-svelte ✅ success
vite-plugin-vue ✅ success
vite-setup-catalogue ✅ success
vitepress ✅ success
vitest ✅ success
windicss ✅ success

Copy link
Member

@patak-dev patak-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ecosystem-ci is good, Nuxt and vite-plugin-ssr are currently failing against main

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.

3 participants