Skip to content

Commit

Permalink
feat(plugin-vue): define __VUE_SSR__ flag
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Sep 23, 2021
1 parent bb82e7a commit 49618c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/plugin-vue/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ export default function vuePlugin(rawOptions: Options = {}): Plugin {
define: {
__VUE_OPTIONS_API__: true,
__VUE_PROD_DEVTOOLS__: false,
__VUE_SSR__: !!config.build?.ssr,
...config.define
},
ssr: {
Expand Down

0 comments on commit 49618c1

Please sign in to comment.