From 5818ac927861783ea2b05450761fed30f40e7399 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Mart=C3=ADn=20Seery?= Date: Sat, 26 Feb 2022 04:49:34 -0300 Subject: [PATCH] fix: ?html-proxy with trailing = added by some servers (#7093) --- packages/vite/src/node/plugins/html.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vite/src/node/plugins/html.ts b/packages/vite/src/node/plugins/html.ts index e7ca5e63961253..7f8a750c72bf22 100644 --- a/packages/vite/src/node/plugins/html.ts +++ b/packages/vite/src/node/plugins/html.ts @@ -41,7 +41,7 @@ interface ScriptAssetsUrl { url: string } -const htmlProxyRE = /\?html-proxy[&inline\-css]*&index=(\d+)\.(js|css)$/ +const htmlProxyRE = /\?html-proxy=?[&inline\-css]*&index=(\d+)\.(js|css)$/ const inlineCSSRE = /__VITE_INLINE_CSS__([^_]+_\d+)__/g const inlineImportRE = /\bimport\s*\(("[^"]*"|'[^']*')\)/g export const isHTMLProxy = (id: string): boolean => htmlProxyRE.test(id)