@@ -65,7 +65,7 @@ const isBuiltInDir = makeMap(
65
65
66
66
export interface SFCScriptCompileOptions {
67
67
/**
68
- * Scope ID for prefixing injected CSS varialbes .
68
+ * Scope ID for prefixing injected CSS variables .
69
69
* This must be consistent with the `id` passed to `compileStyle`.
70
70
*/
71
71
id : string
@@ -107,7 +107,7 @@ export interface SFCScriptCompileOptions {
107
107
inlineTemplate ?: boolean
108
108
/**
109
109
* 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
111
111
* options passed to `compiler-dom`.
112
112
*/
113
113
templateOptions ?: Partial < SFCTemplateCompileOptions >
@@ -412,7 +412,7 @@ export function compileScript(
412
412
default : right
413
413
}
414
414
} else if ( prop . value . type === 'Identifier' ) {
415
- // simple destucture
415
+ // simple destructure
416
416
propsDestructuredBindings [ propKey ] = {
417
417
local : prop . value . name
418
418
}
@@ -632,7 +632,7 @@ export function compileScript(
632
632
633
633
/**
634
634
* 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
636
636
* declarations. Otherwise we will have to fallback to runtime merging.
637
637
*/
638
638
function hasStaticWithDefaults ( ) {
@@ -1542,7 +1542,7 @@ function walkObjectPattern(
1542
1542
}
1543
1543
} else {
1544
1544
// ...rest
1545
- // argument can only be identifer when destructuring
1545
+ // argument can only be identifier when destructuring
1546
1546
const type = isConst ? BindingTypes . SETUP_CONST : BindingTypes . SETUP_LET
1547
1547
registerBinding ( bindings , p . argument as Identifier , type )
1548
1548
}
@@ -1574,7 +1574,7 @@ function walkPattern(
1574
1574
: BindingTypes . SETUP_LET
1575
1575
registerBinding ( bindings , node , type )
1576
1576
} else if ( node . type === 'RestElement' ) {
1577
- // argument can only be identifer when destructuring
1577
+ // argument can only be identifier when destructuring
1578
1578
const type = isConst ? BindingTypes . SETUP_CONST : BindingTypes . SETUP_LET
1579
1579
registerBinding ( bindings , node . argument as Identifier , type )
1580
1580
} else if ( node . type === 'ObjectPattern' ) {
0 commit comments