Skip to content

Commit d2939fa

Browse files
feat: resolve aliases with ts extensions (#178) (#179)
1 parent 02bffdf commit d2939fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/replacers/default.replacer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function escapeSpecialChars(str: string) {
1717

1818
function getAliasPrefixRegExp(alias: Alias) {
1919
return new RegExp(
20-
`(?:^${escapeSpecialChars(alias.prefix)})|(?:\\.(js|json)$)`,
20+
`(?:^${escapeSpecialChars(alias.prefix)})|(?:\\.(js|ts|json)$)`,
2121
'g'
2222
);
2323
}

0 commit comments

Comments
 (0)