File tree 3 files changed +3
-6
lines changed
3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,12 @@ import { join, relative } from "pathe";
3
3
export async function createResolver ( ) {
4
4
const { createJiti } = await import ( "jiti" ) ;
5
5
6
- const jiti = createJiti ( join ( process . cwd ( ) , '_' ) , {
6
+ const jiti = createJiti ( join ( process . cwd ( ) , "_" ) , {
7
7
cache : true ,
8
8
requireCache : false ,
9
9
interopDefault : true ,
10
10
} ) ;
11
11
12
-
13
12
return {
14
13
relative : ( path : string ) => relative ( process . cwd ( ) , path ) ,
15
14
formatRelative : ( path : string ) => `\`./${ relative ( process . cwd ( ) , path ) } \`` ,
Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ export async function createDevServer(
140
140
) ;
141
141
}
142
142
143
- const _loadedEntry = await resolver . import ( _entry ) as any ;
143
+ const _loadedEntry = ( await resolver . import ( _entry ) ) as any ;
144
144
145
145
let _handler =
146
146
_loadedEntry . handler ||
Original file line number Diff line number Diff line change @@ -66,9 +66,7 @@ export async function listenAndWatch(
66
66
return ;
67
67
}
68
68
const eventsString = filteredEvents
69
- . map (
70
- ( e ) => `${ devServer . resolver . formatRelative ( e . path ) } ${ e . type } d` ,
71
- )
69
+ . map ( ( e ) => `${ devServer . resolver . formatRelative ( e . path ) } ${ e . type } d` )
72
70
. join ( ", " ) ;
73
71
logger . log ( `🔄 Reloading server (${ eventsString } )` ) ;
74
72
devServer . reload ( ) ;
You can’t perform that action at this time.
0 commit comments