Commit 8211fda 1 parent 866c80c commit 8211fda Copy full SHA for 8211fda
File tree 3 files changed +21
-2
lines changed
3 files changed +21
-2
lines changed Original file line number Diff line number Diff line change 1
1
import { defineConfig } from 'astro/config' ;
2
2
import solid from '@astrojs/solid-js' ;
3
+ import tsconfigPaths from 'vite-tsconfig-paths'
3
4
4
5
export default defineConfig ( {
5
6
integrations : [
6
7
solid ( ) ,
7
8
] ,
8
9
vite : {
9
- plugins : [ ] ,
10
+ plugins : [
11
+ tsconfigPaths ( ) ,
12
+ ] ,
10
13
build : {
11
14
rollupOptions : {
12
15
external : [
13
16
/ ^ t y p e s \/ / ,
14
17
]
15
18
}
19
+ } ,
20
+ vite : {
21
+ types : [ "vite/client" ]
16
22
}
17
23
} ,
18
24
} ) ;
Original file line number Diff line number Diff line change 20
20
},
21
21
"dependencies" : {
22
22
"@astrojs/solid-js" : " ^4.4.1" ,
23
+ "@astrojs/ts-plugin" : " ^1.10.1" ,
23
24
"@kobalte/core" : " ^0.13.4" ,
24
25
"@types/uuid" : " ^10.0.0" ,
25
26
"astro" : " ^4.14.6" ,
30
31
"solid-js" : " ^1.8.22" ,
31
32
"tailwind-merge" : " ^2.4.0" ,
32
33
"tailwindcss-animate" : " ^1.0.7" ,
33
- "uuid" : " ^10.0.0"
34
+ "uuid" : " ^10.0.0" ,
35
+ "vite" : " ^5.4.2" ,
36
+ "vite-tsconfig-paths" : " ^5.0.1"
34
37
}
35
38
}
Original file line number Diff line number Diff line change 1
1
{
2
+ "extends" : "astro/tsconfigs/strict" ,
2
3
"compilerOptions" : {
3
4
"allowJs" : true ,
4
5
"allowSyntheticDefaultImports" : true ,
19
20
"strict" : true ,
20
21
"target" : "ESNext" ,
21
22
"types" : [
23
+ "astro/client" ,
22
24
"vite/client"
23
25
] ,
24
26
"baseUrl" : "./" ,
25
27
"outDir" : "dist" ,
28
+ "plugins" : [
29
+ {
30
+ "name" : "@astrojs/ts-plugin"
31
+ }
32
+ ] ,
26
33
"paths" : {
27
34
"@components/*" : [
28
35
"src/components/*"
58
65
"*.astro" ,
59
66
"*.tsx"
60
67
] ,
68
+ "exclude" : [
69
+ "node_modules"
70
+ ]
61
71
}
You can’t perform that action at this time.
0 commit comments