electron-webpack
Version:
> Because setting up `webpack` in the `electron` environment shouldn't be difficult.
19 lines (12 loc) • 582 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__;
});
// __ts-babel@6.0.4
//# sourceMappingURL=main-hmr.js.map