@@ -33,10 +33,10 @@ export const enum StringifyThresholds {
33
33
NODE_COUNT = 20
34
34
}
35
35
36
- type StringiableNode = PlainElementNode | TextCallNode
36
+ type StringifiableNode = PlainElementNode | TextCallNode
37
37
38
38
/**
39
- * Turn eligible hoisted static trees into stringied static nodes, e.g.
39
+ * Turn eligible hoisted static trees into stringified static nodes, e.g.
40
40
*
41
41
* ```js
42
42
* const _hoisted_1 = createStaticVNode(`<div class="foo">bar</div>`)
@@ -61,7 +61,7 @@ type StringiableNode = PlainElementNode | TextCallNode
61
61
export const stringifyStatic : HoistTransform = ( children , context ) => {
62
62
let nc = 0 // current node count
63
63
let ec = 0 // current element with binding count
64
- const currentChunk : StringiableNode [ ] = [ ]
64
+ const currentChunk : StringifiableNode [ ] = [ ]
65
65
66
66
const stringifyCurrentChunk = ( currentIndex : number ) : number => {
67
67
if (
@@ -101,7 +101,7 @@ export const stringifyStatic: HoistTransform = (children, context) => {
101
101
const hoisted = getHoistedNode ( child )
102
102
if ( hoisted ) {
103
103
// presence of hoisted means child must be a stringifiable node
104
- const node = child as StringiableNode
104
+ const node = child as StringifiableNode
105
105
const result = analyzeNode ( node )
106
106
if ( result ) {
107
107
// node is stringifiable, record state
@@ -137,7 +137,7 @@ const isStringifiableAttr = (name: string) => {
137
137
}
138
138
139
139
const replaceHoist = (
140
- node : StringiableNode ,
140
+ node : StringifiableNode ,
141
141
replacement : JSChildNode | null ,
142
142
context : TransformContext
143
143
) => {
@@ -152,7 +152,7 @@ const replaceHoist = (
152
152
* - nc is the number of nodes inside
153
153
* - ec is the number of element with bindings inside
154
154
*/
155
- function analyzeNode ( node : StringiableNode ) : [ number , number ] | false {
155
+ function analyzeNode ( node : StringifiableNode ) : [ number , number ] | false {
156
156
if ( node . type === NodeTypes . TEXT_CALL ) {
157
157
return [ 1 , 0 ]
158
158
}
0 commit comments