From b3c040d71124f92c98f140219fbbb79a5103576f Mon Sep 17 00:00:00 2001 From: Tanner Linsley Date: Mon, 18 Mar 2019 11:23:46 -0600 Subject: [PATCH] Remove broken/deprecated mime.wasm property setter Since `mime@2.x`, the `mime.types` property has been deprecated and privatized. I also believe that this call is no longer needed in the new version. Fixes #1724 --- lib/Server.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/Server.js b/lib/Server.js index 07c19ff54c..cc0d74e848 100644 --- a/lib/Server.js +++ b/lib/Server.js @@ -155,10 +155,6 @@ class Server { // eslint-disable-next-line const app = (this.app = new express()); - // ref: https://github.com/webpack/webpack-dev-server/issues/1575 - // remove this when send@^0.16.3 - express.static.mime.types.wasm = 'application/wasm'; - app.all('*', (req, res, next) => { if (this.checkHost(req.headers)) { return next();