File tree Expand file tree Collapse file tree 4 files changed +2073
-489
lines changed Expand file tree Collapse file tree 4 files changed +2073
-489
lines changed Original file line number Diff line number Diff line change 77
77
"@solidjs/testing-library" : " 0.8.5" ,
78
78
"@testing-library/jest-dom" : " ^6.4.5" ,
79
79
"@testing-library/user-event" : " ^14.5.2" ,
80
- "vite-plugin-solid" : " ^2.11.6"
80
+ "solid-js" : " ^1.8.4" ,
81
+ "vite-plugin-solid" : " ^2.11.6" ,
82
+ "vite" : " ^5.4.11" ,
83
+ "vinxi" : " ^0.3.12"
81
84
},
82
85
"scripts" : {
83
86
"build" : " run-p build:transpile build:types" ,
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ export type RollupConfig = {
6
6
plugins : unknown [ ] ;
7
7
} ;
8
8
9
- export type SolidStartInlineConfig = Parameters < typeof defineConfig > [ 0 ] ;
9
+ export type SolidStartInlineConfig = NonNullable < Parameters < typeof defineConfig > [ 0 ] > ;
10
10
11
11
export type SolidStartInlineServerConfig = {
12
12
hooks ?: {
Original file line number Diff line number Diff line change @@ -37,10 +37,11 @@ export function withSentry(
37
37
38
38
const server = ( solidStartConfig . server || { } ) as SolidStartInlineServerConfig ;
39
39
const hooks = server . hooks || { } ;
40
+ const viteConfig = solidStartConfig . vite ;
40
41
const vite =
41
- typeof solidStartConfig . vite === 'function'
42
- ? ( ...args : unknown [ ] ) => addSentryPluginToVite ( solidStartConfig . vite ( ...args ) , sentryPluginOptions )
43
- : addSentryPluginToVite ( solidStartConfig . vite , sentryPluginOptions ) ;
42
+ typeof viteConfig === 'function'
43
+ ? ( ...args : Parameters < typeof viteConfig > ) => addSentryPluginToVite ( viteConfig ( ...args ) , sentryPluginOptions )
44
+ : addSentryPluginToVite ( viteConfig , sentryPluginOptions ) ;
44
45
45
46
return {
46
47
...solidStartConfig ,
You can’t perform that action at this time.
0 commit comments