Skip to content

Commit d65afc2

Browse files
authored
chore: make it work with rollup v4 (#3065)
1 parent 1ee1c04 commit d65afc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/node/plugin.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ declare module 'vite' {
3737
}
3838

3939
const themeRE = /\/\.vitepress\/theme\/index\.(m|c)?(j|t)s$/
40-
const hashRE = /\.(\w+)\.js$/
40+
const hashRE = /\.([-\w]+)\.js$/
4141
const staticInjectMarkerRE =
4242
/\b(const _hoisted_\d+ = \/\*(?:#|@)__PURE__\*\/\s*createStaticVNode)\("(.*)", (\d+)\)/g
4343
const staticStripRE = /['"`]__VP_STATIC_START__[^]*?__VP_STATIC_END__['"`]/g

0 commit comments

Comments
 (0)