From fde14a869c3bccabeeb6f6ef5f55aa6b4c5756f6 Mon Sep 17 00:00:00 2001 From: amille44420 Date: Fri, 28 Feb 2020 20:55:48 +0800 Subject: [PATCH] feat: stop using default export for node hmr BREAKING CHANGE: the server entry point must now use module.exports to return the server instance instance of default export --- scripts/start-node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/start-node.js b/scripts/start-node.js index f96c13a..d6b7348 100644 --- a/scripts/start-node.js +++ b/scripts/start-node.js @@ -49,7 +49,7 @@ const startServer = compiler => { // now we can get the latest version of our server // eslint-disable-next-line global-require, import/no-unresolved - server = require(serverPath).default; + server = require(serverPath); console.warn('[\x1b[35mHot Reload\x1b[0m] Server has been reloaded.'); } catch (runtimeError) {