Skip to content

Commit f83d9c4

Browse files
AndreyYolkinsxzz
authored andcommitted
fix: typo in normalizeComponentInfo method name (#684)
1 parent 965907b commit f83d9c4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/core/context.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type { UpdatePayload, ViteDevServer } from 'vite'
66
import { slash, throttle, toArray } from '@antfu/utils'
77
import type { ComponentInfo, Options, ResolvedOptions, Transformer } from '../types'
88
import { DIRECTIVE_IMPORT_PREFIX } from './constants'
9-
import { getNameFromFilePath, matchGlobs, normalizeComponetInfo, parseId, pascalCase, resolveAlias } from './utils'
9+
import { getNameFromFilePath, matchGlobs, normalizeComponentInfo, parseId, pascalCase, resolveAlias } from './utils'
1010
import { resolveOptions } from './options'
1111
import { searchComponents } from './fs/glob'
1212
import { writeDeclaration } from './declaration'
@@ -239,7 +239,7 @@ export class Context {
239239
else {
240240
info = {
241241
as: name,
242-
...normalizeComponetInfo(result),
242+
...normalizeComponentInfo(result),
243243
}
244244
}
245245
if (type === 'component')

src/core/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export function stringifyImport(info: ImportInfo | string) {
8686
return `import ${info.as} from '${info.from}'`
8787
}
8888

89-
export function normalizeComponetInfo(info: ImportInfo | ImportInfoLegacy | ComponentInfo): ComponentInfo {
89+
export function normalizeComponentInfo(info: ImportInfo | ImportInfoLegacy | ComponentInfo): ComponentInfo {
9090
if ('path' in info) {
9191
return {
9292
from: info.path,

0 commit comments

Comments
 (0)