Skip to content

Commit f758de4

Browse files
authored
fix: avoid anonymous function for more clear stack trace (#79)
1 parent 275ba6b commit f758de4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export default function bem(
5252
const pre = prefix || `${namespace}${nsDelim}`
5353
const baseBlock = `${pre}${block}`
5454

55-
return (elementOrModifiers?: string | Modifiers, modifiers?: Modifiers) => {
55+
return function bemBlock(elementOrModifiers?: string | Modifiers, modifiers?: Modifiers) {
5656
let base = baseBlock
5757

5858
if (!elementOrModifiers) {

0 commit comments

Comments
 (0)