|
@@ -15,7 +15,14 @@ import {
|
|
|
import { nodeOps } from './nodeOps'
|
|
import { nodeOps } from './nodeOps'
|
|
|
import { patchProp } from './patchProp'
|
|
import { patchProp } from './patchProp'
|
|
|
// Importing from the compiler, will be tree-shaken in prod
|
|
// Importing from the compiler, will be tree-shaken in prod
|
|
|
-import { isFunction, isString, isHTMLTag, isSVGTag, extend } from '@vue/shared'
|
|
|
|
|
|
|
+import {
|
|
|
|
|
+ isFunction,
|
|
|
|
|
+ isString,
|
|
|
|
|
+ isHTMLTag,
|
|
|
|
|
+ isSVGTag,
|
|
|
|
|
+ extend,
|
|
|
|
|
+ NOOP
|
|
|
|
|
+} from '@vue/shared'
|
|
|
|
|
|
|
|
declare module '@vue/reactivity' {
|
|
declare module '@vue/reactivity' {
|
|
|
export interface RefUnwrapBailTypes {
|
|
export interface RefUnwrapBailTypes {
|
|
@@ -225,6 +232,24 @@ export {
|
|
|
export { withModifiers, withKeys } from './directives/vOn'
|
|
export { withModifiers, withKeys } from './directives/vOn'
|
|
|
export { vShow } from './directives/vShow'
|
|
export { vShow } from './directives/vShow'
|
|
|
|
|
|
|
|
|
|
+import { initVModelForSSR } from './directives/vModel'
|
|
|
|
|
+import { initVShowForSSR } from './directives/vShow'
|
|
|
|
|
+
|
|
|
|
|
+let ssrDirectiveInitialized = false
|
|
|
|
|
+
|
|
|
|
|
+/**
|
|
|
|
|
+ * @internal
|
|
|
|
|
+ */
|
|
|
|
|
+export const initDirectivesForSSR = __SSR__
|
|
|
|
|
+ ? () => {
|
|
|
|
|
+ if (!ssrDirectiveInitialized) {
|
|
|
|
|
+ ssrDirectiveInitialized = true
|
|
|
|
|
+ initVModelForSSR()
|
|
|
|
|
+ initVShowForSSR()
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ : NOOP
|
|
|
|
|
+
|
|
|
// re-export everything from core
|
|
// re-export everything from core
|
|
|
// h, Component, reactivity API, nextTick, flags & types
|
|
// h, Component, reactivity API, nextTick, flags & types
|
|
|
export * from '@vue/runtime-core'
|
|
export * from '@vue/runtime-core'
|