Skip to content

Commit abb1b57

Browse files
committed
fix: improve createStaticVNode match for rollup codegen compat
1 parent a051e66 commit abb1b57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node/plugin.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { OutputAsset, OutputChunk } from 'rollup'
1111

1212
const hashRE = /\.(\w+)\.js$/
1313
const staticInjectMarkerRE =
14-
/\b(const _hoisted_\d+ = \/\*#__PURE__\*\/createStaticVNode)\("(.*)", (\d+)\)/g
14+
/\b(const _hoisted_\d+ = \/\*(?:#|@)__PURE__\*\/\s*createStaticVNode)\("(.*)", (\d+)\)/g
1515
const staticStripRE = /__VP_STATIC_START__.*?__VP_STATIC_END__/g
1616
const staticRestoreRE = /__VP_STATIC_(START|END)__/g
1717

0 commit comments

Comments
 (0)