Skip to content

Commit 2d4f455

Browse files
Rudeus3Greyratmeiziwen1
and
meiziwen1
authored
chore(compiler-sfc): fix typo in compileScript (#5000)
Co-authored-by: meiziwen1 <[email protected]>
1 parent b6a8a45 commit 2d4f455

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/compiler-sfc/src/compileScript.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ const isBuiltInDir = makeMap(
6565

6666
export interface SFCScriptCompileOptions {
6767
/**
68-
* Scope ID for prefixing injected CSS varialbes.
68+
* Scope ID for prefixing injected CSS variables.
6969
* This must be consistent with the `id` passed to `compileStyle`.
7070
*/
7171
id: string
@@ -107,7 +107,7 @@ export interface SFCScriptCompileOptions {
107107
inlineTemplate?: boolean
108108
/**
109109
* Options for template compilation when inlining. Note these are options that
110-
* would normally be pased to `compiler-sfc`'s own `compileTemplate()`, not
110+
* would normally be passed to `compiler-sfc`'s own `compileTemplate()`, not
111111
* options passed to `compiler-dom`.
112112
*/
113113
templateOptions?: Partial<SFCTemplateCompileOptions>
@@ -412,7 +412,7 @@ export function compileScript(
412412
default: right
413413
}
414414
} else if (prop.value.type === 'Identifier') {
415-
// simple destucture
415+
// simple destructure
416416
propsDestructuredBindings[propKey] = {
417417
local: prop.value.name
418418
}
@@ -632,7 +632,7 @@ export function compileScript(
632632

633633
/**
634634
* check defaults. If the default object is an object literal with only
635-
* static properties, we can directly generate more optimzied default
635+
* static properties, we can directly generate more optimized default
636636
* declarations. Otherwise we will have to fallback to runtime merging.
637637
*/
638638
function hasStaticWithDefaults() {
@@ -1542,7 +1542,7 @@ function walkObjectPattern(
15421542
}
15431543
} else {
15441544
// ...rest
1545-
// argument can only be identifer when destructuring
1545+
// argument can only be identifier when destructuring
15461546
const type = isConst ? BindingTypes.SETUP_CONST : BindingTypes.SETUP_LET
15471547
registerBinding(bindings, p.argument as Identifier, type)
15481548
}
@@ -1574,7 +1574,7 @@ function walkPattern(
15741574
: BindingTypes.SETUP_LET
15751575
registerBinding(bindings, node, type)
15761576
} else if (node.type === 'RestElement') {
1577-
// argument can only be identifer when destructuring
1577+
// argument can only be identifier when destructuring
15781578
const type = isConst ? BindingTypes.SETUP_CONST : BindingTypes.SETUP_LET
15791579
registerBinding(bindings, node.argument as Identifier, type)
15801580
} else if (node.type === 'ObjectPattern') {

0 commit comments

Comments
 (0)