Skip to content

Commit fc51b68

Browse files
committedAug 4, 2023
fix: unexpected undefined aliases
fix #257
1 parent e342242 commit fc51b68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/transform.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export function transformAliasImport(
9898
aliases: Alias[],
9999
exclude: (string | RegExp)[] = []
100100
) {
101-
if (!aliases.length) return content
101+
if (!aliases?.length) return content
102102

103103
return content.replace(globalImportRE, str => {
104104
let matchResult = str.match(staticImportRE)

0 commit comments

Comments
 (0)
Please sign in to comment.