mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-16 04:44:35 +00:00
switch to polka, remove unused deps
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import fs from 'fs';
|
||||
import express from 'express';
|
||||
import polka from 'polka';
|
||||
import compression from 'compression';
|
||||
import serve from 'serve-static';
|
||||
import sapper from '../../../middleware';
|
||||
@@ -28,7 +28,7 @@ process.on('message', message => {
|
||||
}
|
||||
});
|
||||
|
||||
const app = express();
|
||||
const app = polka();
|
||||
|
||||
app.use((req, res, next) => {
|
||||
if (pending) pending.add(req.url);
|
||||
|
||||
Reference in New Issue
Block a user