Skip to content

Commit 15246dc

Browse files
authored
chore: slim down devDependencies (#12155)
1 parent 8e696b0 commit 15246dc

File tree

3 files changed

+43
-372
lines changed

3 files changed

+43
-372
lines changed

playgrounds/demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
},
1414
"devDependencies": {
1515
"@sveltejs/vite-plugin-svelte": "^3.1.0",
16-
"express": "^4.19.2",
1716
"nodemon": "^3.0.3",
17+
"polka": "^1.0.0-next.25",
1818
"svelte": "workspace:*",
1919
"vite": "^5.0.13",
2020
"vite-plugin-inspect": "^0.8.4"

playgrounds/demo/server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import fs from 'node:fs';
22
import path from 'node:path';
33
import { fileURLToPath } from 'node:url';
4-
import express from 'express';
4+
import polka from 'polka';
55
import { createServer as createViteServer } from 'vite';
66

77
const PORT = process.env.PORT || '5173';
@@ -11,7 +11,7 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url));
1111
process.env.NODE_ENV = 'development';
1212

1313
async function createServer() {
14-
const app = express();
14+
const app = polka();
1515

1616
const vite = await createViteServer({
1717
server: { middlewareMode: true },

0 commit comments

Comments
 (0)