File tree Expand file tree Collapse file tree 3 files changed +43
-372
lines changed Expand file tree Collapse file tree 3 files changed +43
-372
lines changed Original file line number Diff line number Diff line change 13
13
},
14
14
"devDependencies" : {
15
15
"@sveltejs/vite-plugin-svelte" : " ^3.1.0" ,
16
- "express" : " ^4.19.2" ,
17
16
"nodemon" : " ^3.0.3" ,
17
+ "polka" : " ^1.0.0-next.25" ,
18
18
"svelte" : " workspace:*" ,
19
19
"vite" : " ^5.0.13" ,
20
20
"vite-plugin-inspect" : " ^0.8.4"
Original file line number Diff line number Diff line change 1
1
import fs from 'node:fs' ;
2
2
import path from 'node:path' ;
3
3
import { fileURLToPath } from 'node:url' ;
4
- import express from 'express ' ;
4
+ import polka from 'polka ' ;
5
5
import { createServer as createViteServer } from 'vite' ;
6
6
7
7
const PORT = process . env . PORT || '5173' ;
@@ -11,7 +11,7 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url));
11
11
process . env . NODE_ENV = 'development' ;
12
12
13
13
async function createServer ( ) {
14
- const app = express ( ) ;
14
+ const app = polka ( ) ;
15
15
16
16
const vite = await createViteServer ( {
17
17
server : { middlewareMode : true } ,
You can’t perform that action at this time.
0 commit comments