Skip to content

Commit

Permalink
feat: resolve aliases with ts extensions (justkey007#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
kalvenschraut committed May 17, 2023
1 parent 02bffdf commit 71432fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/replacers/default.replacer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function escapeSpecialChars(str: string) {

function getAliasPrefixRegExp(alias: Alias) {
return new RegExp(
`(?:^${escapeSpecialChars(alias.prefix)})|(?:\\.(js|json)$)`,
`(?:^${escapeSpecialChars(alias.prefix)})|(?:\\.(js|ts|json)$)`,
'g'
);
}
Expand Down

0 comments on commit 71432fc

Please sign in to comment.