Skip to content

Commit f83d9c4

Browse files
AndreyYolkinsxzz
authored andcommitted
fix: typo in normalizeComponentInfo method name (unplugin#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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy