We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f951c63 commit bd6b61cCopy full SHA for bd6b61c
src/index.ts
@@ -15,11 +15,10 @@ const transformer = <T extends ts.Node>(_: ts.Program) => {
15
}
16
const baseUrl = compilerOptions.baseUrl;
17
const paths = compilerOptions.paths;
18
- const regPaths = Object.keys(paths)
19
- .map(key => ({
20
- regexp: new RegExp("^" + key.replace("*", "(.*)") + "$"),
21
- resolve: paths[key][0]
22
- }));
+ const regPaths = Object.keys(paths).map(key => ({
+ regexp: new RegExp("^" + key.replace("*", "(.*)") + "$"),
+ resolve: paths[key][0]
+ }));
23
let fileDir = "";
24
function findFileInPaths(text: string) {
25
for (const path of regPaths) {
0 commit comments