Skip to content

Commit 11bd043

Browse files
committed
fixup
1 parent 1e4d119 commit 11bd043

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

apps/bundle-analyzer/lib/utils.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,15 @@ export function getSpecialModuleType(
4646
let IDENT_ATTRIBUTES_REGEXP =
4747
/^(.+?)(?: \{(.*)\})?(?: \[(.*)\])?(?: \((.*?)\))?(?: <(.*?)>)?$/
4848

49-
export function splitIdent(ident: string) {
50-
let [match, fullPath, extra, layer, moduleType, treeShaking] =
49+
export function splitIdent(ident: string): {
50+
fullPath: string
51+
templateArgs: string
52+
layer: string
53+
moduleType: string
54+
treeShaking: string
55+
} {
56+
let [match, fullPath, templateArgs, layer, moduleType, treeShaking] =
5157
IDENT_ATTRIBUTES_REGEXP.exec(ident) || ['']
5258
ident = ident.substring(0, ident.length - match.length)
53-
return { fullPath, extra, layer, moduleType, treeShaking }
59+
return { fullPath, templateArgs, layer, moduleType, treeShaking }
5460
}

0 commit comments

Comments
 (0)