Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions packages/compiler-sfc/src/compileScript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const isBuiltInDir = makeMap(

export interface SFCScriptCompileOptions {
/**
* Scope ID for prefixing injected CSS varialbes.
* Scope ID for prefixing injected CSS variables.
* This must be consistent with the `id` passed to `compileStyle`.
*/
id: string
Expand Down Expand Up @@ -107,7 +107,7 @@ export interface SFCScriptCompileOptions {
inlineTemplate?: boolean
/**
* Options for template compilation when inlining. Note these are options that
* would normally be pased to `compiler-sfc`'s own `compileTemplate()`, not
* would normally be passed to `compiler-sfc`'s own `compileTemplate()`, not
* options passed to `compiler-dom`.
*/
templateOptions?: Partial<SFCTemplateCompileOptions>
Expand Down Expand Up @@ -416,7 +416,7 @@ export function compileScript(
default: right
}
} else if (prop.value.type === 'Identifier') {
// simple destucture
// simple destructure
propsDestructuredBindings[propKey] = {
local: prop.value.name
}
Expand Down Expand Up @@ -636,7 +636,7 @@ export function compileScript(

/**
* check defaults. If the default object is an object literal with only
* static properties, we can directly generate more optimzied default
* static properties, we can directly generate more optimized default
* declarations. Otherwise we will have to fallback to runtime merging.
*/
function hasStaticWithDefaults() {
Expand Down Expand Up @@ -1545,7 +1545,7 @@ function walkObjectPattern(
}
} else {
// ...rest
// argument can only be identifer when destructuring
// argument can only be identifier when destructuring
const type = isConst ? BindingTypes.SETUP_CONST : BindingTypes.SETUP_LET
registerBinding(bindings, p.argument as Identifier, type)
}
Expand Down Expand Up @@ -1577,7 +1577,7 @@ function walkPattern(
: BindingTypes.SETUP_LET
registerBinding(bindings, node, type)
} else if (node.type === 'RestElement') {
// argument can only be identifer when destructuring
// argument can only be identifier when destructuring
const type = isConst ? BindingTypes.SETUP_CONST : BindingTypes.SETUP_LET
registerBinding(bindings, node.argument as Identifier, type)
} else if (node.type === 'ObjectPattern') {
Expand Down