Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

Commit

Permalink
feat: stop using default export for node hmr
Browse files Browse the repository at this point in the history
BREAKING CHANGE: the server entry point must now use module.exports to return the server instance instance of default export
  • Loading branch information
amille44420 committed Mar 2, 2020
1 parent f502b62 commit fde14a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/start-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit fde14a8

Please sign in to comment.