Skip to content

Commit b2dd561

Browse files
authored
chore: fix typo Stringiable -> Stringifiable (vuejs#1200)
1 parent e985c5c commit b2dd561

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/compiler-dom/src/transforms/stringifyStatic.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ export const enum StringifyThresholds {
3333
NODE_COUNT = 20
3434
}
3535

36-
type StringiableNode = PlainElementNode | TextCallNode
36+
type StringifiableNode = PlainElementNode | TextCallNode
3737

3838
/**
39-
* Turn eligible hoisted static trees into stringied static nodes, e.g.
39+
* Turn eligible hoisted static trees into stringified static nodes, e.g.
4040
*
4141
* ```js
4242
* const _hoisted_1 = createStaticVNode(`<div class="foo">bar</div>`)
@@ -61,7 +61,7 @@ type StringiableNode = PlainElementNode | TextCallNode
6161
export const stringifyStatic: HoistTransform = (children, context) => {
6262
let nc = 0 // current node count
6363
let ec = 0 // current element with binding count
64-
const currentChunk: StringiableNode[] = []
64+
const currentChunk: StringifiableNode[] = []
6565

6666
const stringifyCurrentChunk = (currentIndex: number): number => {
6767
if (
@@ -101,7 +101,7 @@ export const stringifyStatic: HoistTransform = (children, context) => {
101101
const hoisted = getHoistedNode(child)
102102
if (hoisted) {
103103
// presence of hoisted means child must be a stringifiable node
104-
const node = child as StringiableNode
104+
const node = child as StringifiableNode
105105
const result = analyzeNode(node)
106106
if (result) {
107107
// node is stringifiable, record state
@@ -137,7 +137,7 @@ const isStringifiableAttr = (name: string) => {
137137
}
138138

139139
const replaceHoist = (
140-
node: StringiableNode,
140+
node: StringifiableNode,
141141
replacement: JSChildNode | null,
142142
context: TransformContext
143143
) => {
@@ -152,7 +152,7 @@ const replaceHoist = (
152152
* - nc is the number of nodes inside
153153
* - ec is the number of element with bindings inside
154154
*/
155-
function analyzeNode(node: StringiableNode): [number, number] | false {
155+
function analyzeNode(node: StringifiableNode): [number, number] | false {
156156
if (node.type === NodeTypes.TEXT_CALL) {
157157
return [1, 0]
158158
}

0 commit comments

Comments
 (0)