electron-webpack
Version:
> Because setting up `webpack` in the `electron` environment shouldn't be difficult.
14 lines (13 loc) • 559 B
JavaScript
;
require("source-map-support/source-map-support.js").install();
const socketPath = process.env.ELECTRON_HMR_SOCKET_PATH;
if (socketPath == null) {
throw new Error(`[HMR] Env ELECTRON_HMR_SOCKET_PATH is not set`);
}
// module, but not relative path must be used (because this file is used as entry)
const HmrClient = require("electron-webpack/out/electron-main-hmr/HmrClient").HmrClient;
// tslint:disable:no-unused-expression
new HmrClient(socketPath, module.hot, () => {
return __webpack_hash__;
});
//# sourceMappingURL=main-hmr.js.map