@@ -5,21 +5,21 @@ exports[`compiler: integration tests function mode 1`] = `
5
5
6
6
return function render(_ctx, _cache) {
7
7
with (_ctx ) {
8
- const { toDisplayString: _toDisplayString , openBlock: _openBlock , createBlock: _createBlock , createCommentVNode: _createCommentVNode , createTextVNode: _createTextVNode , Fragment: _Fragment , renderList: _renderList , createVNode: _createVNode } = _Vue
8
+ const { toDisplayString: _toDisplayString , openBlock: _openBlock , createElementBlock: _createElementBlock , createCommentVNode: _createCommentVNode , createTextVNode: _createTextVNode , Fragment: _Fragment , renderList: _renderList , createElementVNode: _createElementVNode , normalizeClass: _normalizeClass } = _Vue
9
9
10
- return (_openBlock (), _createBlock (\\" div\\ " , {
10
+ return (_openBlock (), _createElementBlock (\\" div\\ " , {
11
11
id: \\" foo\\ " ,
12
- class: bar .baz
12
+ class: _normalizeClass ( bar .baz )
13
13
}, [
14
14
_createTextVNode (_toDisplayString (world .burn ()) + \\" \\ " , 1 /* TEXT */ ),
15
15
ok
16
- ? (_openBlock (), _createBlock (\\" div\\ " , { key: 0 }, \\" yes\\ " ))
17
- : (_openBlock (), _createBlock (_Fragment , { key: 1 }, [
16
+ ? (_openBlock (), _createElementBlock (\\" div\\ " , { key: 0 }, \\" yes\\ " ))
17
+ : (_openBlock (), _createElementBlock (_Fragment , { key: 1 }, [
18
18
_createTextVNode (\\" no\\ " )
19
19
], 2112 /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */ )),
20
- (_openBlock (true ), _createBlock (_Fragment , null , _renderList (list , (value , index ) => {
21
- return (_openBlock (), _createBlock (\\" div\\ " , null , [
22
- _createVNode (\\" span\\ " , null , _toDisplayString (value + index ), 1 /* TEXT */ )
20
+ (_openBlock (true ), _createElementBlock (_Fragment , null , _renderList (list , (value , index ) => {
21
+ return (_openBlock (), _createElementBlock (\\" div\\ " , null , [
22
+ _createElementVNode (\\" span\\ " , null , _toDisplayString (value + index ), 1 /* TEXT */ )
23
23
]))
24
24
}), 256 /* UNKEYED_FRAGMENT */ ))
25
25
], 2 /* CLASS */ ))
@@ -28,45 +28,45 @@ return function render(_ctx, _cache) {
28
28
` ;
29
29
30
30
exports [` compiler: integration tests function mode w/ prefixIdentifiers: true 1` ] = `
31
- "const { toDisplayString : _toDisplayString , openBlock : _openBlock , createBlock : _createBlock , createCommentVNode : _createCommentVNode , createTextVNode : _createTextVNode , Fragment : _Fragment , renderList : _renderList , createVNode : _createVNode } = Vue
31
+ "const { toDisplayString : _toDisplayString , openBlock : _openBlock , createElementBlock : _createElementBlock , createCommentVNode : _createCommentVNode , createTextVNode : _createTextVNode , Fragment : _Fragment , renderList : _renderList , createElementVNode : _createElementVNode , normalizeClass : _normalizeClass } = Vue
32
32
33
33
return function render(_ctx, _cache) {
34
- return (_openBlock (), _createBlock (\\" div\\ " , {
34
+ return (_openBlock (), _createElementBlock (\\" div\\ " , {
35
35
id: \\" foo\\ " ,
36
- class: _ctx .bar .baz
36
+ class: _normalizeClass ( _ctx .bar .baz )
37
37
}, [
38
38
_createTextVNode (_toDisplayString (_ctx .world .burn ()) + \\" \\ " , 1 /* TEXT */ ),
39
39
(_ctx .ok )
40
- ? (_openBlock (), _createBlock (\\" div\\ " , { key: 0 }, \\" yes\\ " ))
41
- : (_openBlock (), _createBlock (_Fragment , { key: 1 }, [
40
+ ? (_openBlock (), _createElementBlock (\\" div\\ " , { key: 0 }, \\" yes\\ " ))
41
+ : (_openBlock (), _createElementBlock (_Fragment , { key: 1 }, [
42
42
_createTextVNode (\\" no\\ " )
43
43
], 2112 /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */ )),
44
- (_openBlock (true ), _createBlock (_Fragment , null , _renderList (_ctx .list , (value , index ) => {
45
- return (_openBlock (), _createBlock (\\" div\\ " , null , [
46
- _createVNode (\\" span\\ " , null , _toDisplayString (value + index ), 1 /* TEXT */ )
44
+ (_openBlock (true ), _createElementBlock (_Fragment , null , _renderList (_ctx .list , (value , index ) => {
45
+ return (_openBlock (), _createElementBlock (\\" div\\ " , null , [
46
+ _createElementVNode (\\" span\\ " , null , _toDisplayString (value + index ), 1 /* TEXT */ )
47
47
]))
48
48
}), 256 /* UNKEYED_FRAGMENT */ ))
49
49
], 2 /* CLASS */ ))
50
50
} "
51
51
` ;
52
52
53
53
exports [` compiler: integration tests module mode 1` ] = `
54
- "import { toDisplayString as _toDisplayString , openBlock as _openBlock , createBlock as _createBlock , createCommentVNode as _createCommentVNode , createTextVNode as _createTextVNode , Fragment as _Fragment , renderList as _renderList , createVNode as _createVNode } from \\ "vue\\ "
54
+ "import { toDisplayString as _toDisplayString , openBlock as _openBlock , createElementBlock as _createElementBlock , createCommentVNode as _createCommentVNode , createTextVNode as _createTextVNode , Fragment as _Fragment , renderList as _renderList , createElementVNode as _createElementVNode , normalizeClass as _normalizeClass } from \\ "vue\\ "
55
55
56
56
export function render(_ctx, _cache) {
57
- return (_openBlock (), _createBlock (\\" div\\ " , {
57
+ return (_openBlock (), _createElementBlock (\\" div\\ " , {
58
58
id: \\" foo\\ " ,
59
- class: _ctx .bar .baz
59
+ class: _normalizeClass ( _ctx .bar .baz )
60
60
}, [
61
61
_createTextVNode (_toDisplayString (_ctx .world .burn ()) + \\" \\ " , 1 /* TEXT */ ),
62
62
(_ctx .ok )
63
- ? (_openBlock (), _createBlock (\\" div\\ " , { key: 0 }, \\" yes\\ " ))
64
- : (_openBlock (), _createBlock (_Fragment , { key: 1 }, [
63
+ ? (_openBlock (), _createElementBlock (\\" div\\ " , { key: 0 }, \\" yes\\ " ))
64
+ : (_openBlock (), _createElementBlock (_Fragment , { key: 1 }, [
65
65
_createTextVNode (\\" no\\ " )
66
66
], 2112 /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */ )),
67
- (_openBlock (true ), _createBlock (_Fragment , null , _renderList (_ctx .list , (value , index ) => {
68
- return (_openBlock (), _createBlock (\\" div\\ " , null , [
69
- _createVNode (\\" span\\ " , null , _toDisplayString (value + index ), 1 /* TEXT */ )
67
+ (_openBlock (true ), _createElementBlock (_Fragment , null , _renderList (_ctx .list , (value , index ) => {
68
+ return (_openBlock (), _createElementBlock (\\" div\\ " , null , [
69
+ _createElementVNode (\\" span\\ " , null , _toDisplayString (value + index ), 1 /* TEXT */ )
70
70
]))
71
71
}), 256 /* UNKEYED_FRAGMENT */ ))
72
72
], 2 /* CLASS */ ))
0 commit comments