Skip to content

Commit

Permalink
simplify transforms
Browse files Browse the repository at this point in the history
  • Loading branch information
lifeart committed Feb 6, 2024
1 parent bae669f commit 97f7b88
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ export function resolvePath(str: string) {
} else if (str === 'has-block') {
str = str.replace('has-block', `${SYMBOLS.$_hasBlock}.bind(this, $slots)`);
} else if (str === 'component') {
str = SYMBOLS.COMPONENT_HELPER;
return SYMBOLS.COMPONENT_HELPER;
} else if (str === 'helper') {
str = SYMBOLS.HELPER_HELPER;
return SYMBOLS.HELPER_HELPER;
} else if (str === 'modifier') {
str = SYMBOLS.MODIFIER_HELPER;
return SYMBOLS.MODIFIER_HELPER;
}
return toSafeJSPath(
toOptionalChaining(str)
Expand Down

0 comments on commit 97f7b88

Please sign in to comment.