We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02bffdf commit d2939faCopy full SHA for d2939fa
src/replacers/default.replacer.ts
@@ -17,7 +17,7 @@ function escapeSpecialChars(str: string) {
17
18
function getAliasPrefixRegExp(alias: Alias) {
19
return new RegExp(
20
- `(?:^${escapeSpecialChars(alias.prefix)})|(?:\\.(js|json)$)`,
+ `(?:^${escapeSpecialChars(alias.prefix)})|(?:\\.(js|ts|json)$)`,
21
'g'
22
);
23
}
0 commit comments