@@ -3,7 +3,7 @@ import { compile } from '../src'
3
3
describe ( 'ssr: v-show' , ( ) => {
4
4
test ( 'basic' , ( ) => {
5
5
expect ( compile ( `<div v-show="foo"/>` ) . code ) . toMatchInlineSnapshot ( `
6
- "const { _renderStyle } = require(\\"vue\\")
6
+ "const { _renderStyle } = require(\\"@ vue/server-renderer \\")
7
7
8
8
return function ssrRender(_ctx, _push, _parent) {
9
9
_push(\`<div\${_renderStyle((_ctx.foo) ? null : { display: \\"none\\" })}></div>\`)
@@ -14,7 +14,7 @@ describe('ssr: v-show', () => {
14
14
test ( 'with static style' , ( ) => {
15
15
expect ( compile ( `<div style="color:red" v-show="foo"/>` ) . code )
16
16
. toMatchInlineSnapshot ( `
17
- "const { _renderStyle } = require(\\"vue\\")
17
+ "const { _renderStyle } = require(\\"@ vue/server-renderer \\")
18
18
19
19
const _hoisted_1 = {\\"color\\":\\"red\\"}
20
20
@@ -30,7 +30,7 @@ describe('ssr: v-show', () => {
30
30
test ( 'with dynamic style' , ( ) => {
31
31
expect ( compile ( `<div :style="{ color: 'red' }" v-show="foo"/>` ) . code )
32
32
. toMatchInlineSnapshot ( `
33
- "const { _renderStyle } = require(\\"vue\\")
33
+ "const { _renderStyle } = require(\\"@ vue/server-renderer \\")
34
34
35
35
return function ssrRender(_ctx, _push, _parent) {
36
36
_push(\`<div\${_renderStyle([
@@ -46,7 +46,7 @@ describe('ssr: v-show', () => {
46
46
compile ( `<div style="color:red" :style="{ fontSize: 14 }" v-show="foo"/>` )
47
47
. code
48
48
) . toMatchInlineSnapshot ( `
49
- "const { _renderStyle } = require(\\"vue\\")
49
+ "const { _renderStyle } = require(\\"@ vue/server-renderer \\")
50
50
51
51
const _hoisted_1 = {\\"color\\":\\"red\\"}
52
52
@@ -66,7 +66,8 @@ describe('ssr: v-show', () => {
66
66
`<div v-bind="baz" style="color:red" :style="{ fontSize: 14 }" v-show="foo"/>`
67
67
) . code
68
68
) . toMatchInlineSnapshot ( `
69
- "const { mergeProps, _renderAttrs } = require(\\"vue\\")
69
+ "const { mergeProps } = require(\\"vue\\")
70
+ const { _renderAttrs } = require(\\"@vue/server-renderer\\")
70
71
71
72
const _hoisted_1 = {\\"color\\":\\"red\\"}
72
73
0 commit comments