justkey007 / tsc-alias

Replace alias paths with relative paths after typescript compilation
MIT License
876 stars 63 forks source link

fix(default-replacer): `(?:\.(js|json)$)` should be replaced by `(?:\\.(js|json)$)` #131

Closed izumiya closed 2 years ago

izumiya commented 2 years ago

This PR solves the following problem.

console.log(`(?:\.(js|json)$)`); // results (?:.(js|json)$).