react-client 1.0.31 → 1.0.32

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.
@@ -20,9 +20,14 @@ import fs from 'fs-extra';
20
20
  import open from 'open';
21
21
  import chalk from 'chalk';
22
22
  import { execSync } from 'child_process';
23
- import { loadReactClientConfig } from '../../utils/loadConfig';
24
23
  import { BroadcastManager } from '../../server/broadcastManager';
25
24
  import { createRequire } from 'module';
25
+ import { fileURLToPath } from 'url';
26
+ import { dirname, resolve } from 'path';
27
+ const __filename = fileURLToPath(import.meta.url);
28
+ const __dirname = dirname(__filename);
29
+ const loadConfigPath = resolve(__dirname, '../../utils/loadConfig.js');
30
+ const { loadReactClientConfig } = await import(loadConfigPath);
26
31
  const require = createRequire(import.meta.url);
27
32
  const RUNTIME_OVERLAY_ROUTE = '/@runtime/overlay';
28
33
  function jsContentType() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-client",
3
- "version": "1.0.31",
3
+ "version": "1.0.32",
4
4
  "description": "react-client is a lightweight CLI and runtime for building React apps with fast iteration.",
5
5
  "license": "MIT",
6
6
  "author": "Venkatesh Sundaram",