File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1
1
import fs from 'node:fs/promises' ;
2
- import http from 'node:http' ;
3
2
import path from 'node:path' ;
4
3
5
4
import { namedHookWithTaskFn , PluginBase } from '@electron-forge/plugin-base' ;
@@ -31,7 +30,7 @@ export default class VitePlugin extends PluginBase<VitePluginConfig> {
31
30
32
31
private watchers : RollupWatcher [ ] = [ ] ;
33
32
34
- private servers : http . Server [ ] = [ ] ;
33
+ private servers : vite . ViteDevServer [ ] = [ ] ;
35
34
36
35
init = ( dir : string ) : void => {
37
36
this . setDirectories ( dir ) ;
@@ -131,7 +130,7 @@ export default class VitePlugin extends PluginBase<VitePluginConfig> {
131
130
viteDevServer . printUrls ( ) ;
132
131
133
132
if ( viteDevServer . httpServer ) {
134
- this . servers . push ( viteDevServer . httpServer ) ;
133
+ this . servers . push ( viteDevServer ) ;
135
134
}
136
135
}
137
136
} ;
You can’t perform that action at this time.
0 commit comments