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 b612e30 commit d0f4eb7Copy full SHA for d0f4eb7
src/index.ts
@@ -29,7 +29,8 @@ const transformer = (_: ts.Program) => (context: ts.TransformationContext) => (
29
30
const { isDeclarationFile } = sourceFile;
31
32
- const { baseUrl = "", paths = { "*": ["*"] } } = compilerOptions;
+ const { baseUrl = "", paths = {} } = compilerOptions;
33
+ paths["*"] = paths["*"]?.concat("*") ?? ["*"];
34
35
const binds = Object.keys(paths)
36
.filter(key => paths[key].length)
tests/__fixtures/without-path/tsconfig.json
@@ -8,6 +8,10 @@
8
9
"esModuleInterop": true,
10
11
+ "paths": {
12
+ "@utils/*": ["utils/*"]
13
+ },
14
+
15
"plugins": [
16
{ "transform": "../../../" },
17
{ "transform": "../../../", "afterDeclarations": true }
0 commit comments