File tree 4 files changed +20
-384
lines changed
4 files changed +20
-384
lines changed Original file line number Diff line number Diff line change 19
19
"@typescript-eslint/parser" : " 5.48.0" ,
20
20
"eslint" : " 8.31.0" ,
21
21
"eslint-config-preact" : " 1.3.0" ,
22
- "typescript" : " 4.9.3 " ,
22
+ "typescript" : " 4.9.4 " ,
23
23
"wmr" : " 3.8.0"
24
24
},
25
25
"dependencies" : {
26
26
"hoofd" : " ^1.2.2" ,
27
- "jsdom" : " ^20.0.1" ,
28
27
"marked" : " 4.2.5" ,
29
- "preact" : " 10.11.0 " ,
28
+ "preact" : " ^ 10.11.3 " ,
30
29
"preact-iso" : " ^2.3.1"
31
30
},
32
31
"author" : " takurinton" ,
Original file line number Diff line number Diff line change @@ -2,18 +2,7 @@ import { prerender as ssr } from "preact-iso";
2
2
import { VNode } from "preact" ;
3
3
import { toStatic } from "hoofd/preact" ;
4
4
5
- let initialized = false ;
6
- async function init ( ) {
7
- // eslint-disable-next-line no-undef
8
- globalThis . DOMParser = new ( require ( "jsdom" ) . JSDOM ) ( "" ) . window . DOMParser ;
9
- }
10
-
11
5
export async function prerender ( vnode : VNode ) {
12
- if ( ! initialized ) {
13
- initialized = true ;
14
- await init ( ) ;
15
- }
16
-
17
6
const res = await ssr ( vnode ) ;
18
7
19
8
const head = toStatic ( ) ;
Original file line number Diff line number Diff line change 7
7
"jsx" : " react" ,
8
8
"jsxFactory" : " h" ,
9
9
"lib" : [" ES2022" ],
10
- "noEmit" : true
10
+ "noEmit" : true ,
11
+ "skipLibCheck" : true
11
12
},
12
- "include" : [" **/*.ts" , " **/*.tsx" ]
13
+ "include" : [" ./**/*.ts" , " ./**/*.tsx" ],
14
+ "exclude" : [" node_modules" , " dist" ]
13
15
}
You can’t perform that action at this time.
0 commit comments