From 5a47ef9aac27031198affb704035d6f48180c293 Mon Sep 17 00:00:00 2001 From: Andreas Fehn Date: Thu, 21 Nov 2024 09:28:33 +0100 Subject: [PATCH 1/2] use script lang regex from svelte compiler --- packages/vite-plugin-svelte/src/utils/compile.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/vite-plugin-svelte/src/utils/compile.js b/packages/vite-plugin-svelte/src/utils/compile.js index 83f2c840d..4c0e524c9 100644 --- a/packages/vite-plugin-svelte/src/utils/compile.js +++ b/packages/vite-plugin-svelte/src/utils/compile.js @@ -14,7 +14,7 @@ import { enhanceCompileError } from './error.js'; // which is closer to the other regexes in at least not falling into commented script // but ideally would be shared exactly with svelte and other tools that use it const scriptLangRE = - /|