Skip to content

Commit 6e1b7cb

Browse files
committedSep 23, 2021
feat(plugin-vue): define __VUE_SSR__ flag
1 parent 975f5b7 commit 6e1b7cb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

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

+1
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ export default function vuePlugin(rawOptions: Options = {}): Plugin {
119119
define: {
120120
__VUE_OPTIONS_API__: true,
121121
__VUE_PROD_DEVTOOLS__: false,
122+
__VUE_SSR__: !!config.build?.ssr,
122123
...config.define
123124
},
124125
ssr: {

0 commit comments

Comments
 (0)
Please sign in to comment.