1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | var hotDevelopment_1 = require("./hotDevelopment");
|
4 | function runHotDev(clientConfig, options) {
|
5 | var hotDev = new hotDevelopment_1.default(clientConfig, options);
|
6 | hotDev.prepHotClient();
|
7 | process.on('SIGTERM', function () {
|
8 | hotDev
|
9 | .dispose()
|
10 | .then(function () { return process.exit(0); })
|
11 | .catch(function () { return process.exit(1); });
|
12 | });
|
13 | return hotDev;
|
14 | }
|
15 | exports.default = runHotDev;
|