Skip to content

Commit ea224cb

Browse files
authored
Update index.ts
1 parent ca3b16c commit ea224cb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/plugin-vue-jsx/src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ export * from './types'
1515
const ssrRegisterHelperId = '/__vue-jsx-ssr-register-helper'
1616
const ssrRegisterHelperCode =
1717
`import { useSSRContext } from "vue"\n` +
18+
// the const here is just to work around the Bun bug where
19+
// Function.toString() isn't working as intended
20+
// https://github.com/oven-sh/bun/issues/9543
1821
`export const ssrRegisterHelper = ${ssrRegisterHelper.toString()}`
1922

2023
/**

0 commit comments

Comments
 (0)