From d65afc28733f7edb173b55b43b69e55867ee6b6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=A0=20/=20green?= Date: Wed, 11 Oct 2023 17:34:18 +0900 Subject: [PATCH] chore: make it work with rollup v4 (#3065) --- src/node/plugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/plugin.ts b/src/node/plugin.ts index a569a04fd6e3..6de976ec48c8 100644 --- a/src/node/plugin.ts +++ b/src/node/plugin.ts @@ -37,7 +37,7 @@ declare module 'vite' { } const themeRE = /\/\.vitepress\/theme\/index\.(m|c)?(j|t)s$/ -const hashRE = /\.(\w+)\.js$/ +const hashRE = /\.([-\w]+)\.js$/ const staticInjectMarkerRE = /\b(const _hoisted_\d+ = \/\*(?:#|@)__PURE__\*\/\s*createStaticVNode)\("(.*)", (\d+)\)/g const staticStripRE = /['"`]__VP_STATIC_START__[^]*?__VP_STATIC_END__['"`]/g