Skip to content

Commit dd4a66c

Browse files
committed
chore: ts alias resolution
1 parent 5ffea9a commit dd4a66c

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

test-files/input.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ console.log("This is the non-setup script");
3131
import MyComponent from "MyComponent.vue";
3232
import { someConst, otherConst } from "some-module";
3333
import type { AssetURLOptions } from "@vue/compiler-sfc";
34-
import { type Props } from "./types";
34+
import { type Props } from "@/types";
3535
3636
const props = withDefaults(
3737
defineProps<

test-files/tsconfig.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"compilerOptions": {
3+
"baseUrl": ".",
4+
"paths": {
5+
"@/*": ["./*"]
6+
},
7+
"sourceMap": true
8+
},
9+
"include": ["**/*.vue", "**/*.ts"],
10+
11+
}

0 commit comments

Comments
 (0)