@joystick.js/cli-canary 0.0.0-canary.140 → 0.0.0-canary.141
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/dev/index.js +3 -3
- package/package.json +1 -1
- package/src/lib/dev/index.js +3 -3
package/dist/lib/dev/index.js
CHANGED
|
@@ -273,14 +273,14 @@ const handleRestartApplicationProcess = async (options = {}) => {
|
|
|
273
273
|
throw new Error(`[dev.handleRestartApplicationProcess] ${exception.message}`);
|
|
274
274
|
}
|
|
275
275
|
};
|
|
276
|
-
const handleNotifyHMRClients = (indexHTMLChanged = false) => {
|
|
276
|
+
const handleNotifyHMRClients = async (indexHTMLChanged = false) => {
|
|
277
277
|
try {
|
|
278
278
|
if (process.hmrProcess) {
|
|
279
|
-
const settings = loadSettings(process.env.NODE_ENV);
|
|
279
|
+
const settings = await loadSettings(process.env.NODE_ENV);
|
|
280
280
|
process.hmrProcess.send(
|
|
281
281
|
JSON.stringify({
|
|
282
282
|
type: "RESTART_SERVER",
|
|
283
|
-
settings,
|
|
283
|
+
settings: settings.parsed,
|
|
284
284
|
indexHTMLChanged
|
|
285
285
|
})
|
|
286
286
|
);
|
package/package.json
CHANGED
package/src/lib/dev/index.js
CHANGED
|
@@ -334,14 +334,14 @@ const handleRestartApplicationProcess = async (options = {}) => {
|
|
|
334
334
|
}
|
|
335
335
|
};
|
|
336
336
|
|
|
337
|
-
const handleNotifyHMRClients = (indexHTMLChanged = false) => {
|
|
337
|
+
const handleNotifyHMRClients = async (indexHTMLChanged = false) => {
|
|
338
338
|
try {
|
|
339
339
|
if (process.hmrProcess) {
|
|
340
|
-
const settings = loadSettings(process.env.NODE_ENV);
|
|
340
|
+
const settings = await loadSettings(process.env.NODE_ENV);
|
|
341
341
|
process.hmrProcess.send(
|
|
342
342
|
JSON.stringify({
|
|
343
343
|
type: "RESTART_SERVER",
|
|
344
|
-
settings,
|
|
344
|
+
settings: settings.parsed,
|
|
345
345
|
indexHTMLChanged,
|
|
346
346
|
})
|
|
347
347
|
);
|