Skip to content

Commit

Permalink
fix: convert to camelCase error
Browse files Browse the repository at this point in the history
  • Loading branch information
MangMax committed Aug 6, 2024
1 parent ce8e680 commit 8e58730
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default defineNuxtModule<ModuleOptions>({
if (!excludes.includes(name)) {
const alias = aliasMap.has(name) ? aliasMap.get(name)! : name
const prefix = (!prefixSkip.some(key => alias.startsWith(key)) && options.prefix) || ''
const as = prefix ? prefix + (options.upperAfterPrefix ? etk.capitalize(alias) : alias) : alias
const as = prefix ? prefix + (options.upperAfterPrefix ? etk.camelCase(alias) : alias) : alias
addImports({ name, as, from: 'es-toolkit' })
}
}
Expand Down

0 comments on commit 8e58730

Please sign in to comment.