We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69b9af0 commit 011438dCopy full SHA for 011438d
packages/plugin-vue/src/main.ts
@@ -143,10 +143,10 @@ export async function transformMain(
143
// SSR module registration by wrapping user setup
144
if (ssr) {
145
output.push(
146
- `import { useSSRContext } from 'vue'`,
+ `import { useSSRContext as __vite_useSSRContext } from 'vue'`,
147
`const _sfc_setup = _sfc_main.setup`,
148
`_sfc_main.setup = (props, ctx) => {`,
149
- ` const ssrContext = useSSRContext()`,
+ ` const ssrContext = __vite_useSSRContext()`,
150
` ;(ssrContext.modules || (ssrContext.modules = new Set())).add(${JSON.stringify(
151
filename
152
)})`,
0 commit comments