@modern-js/server 2.54.2 → 2.54.3

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.
@@ -40,7 +40,7 @@ const createDevServer = async (options, applyPlugins) => {
40
40
  const { config, pwd, serverConfigFile, serverConfigPath } = options;
41
41
  const dev = (0, import_helpers.getDevOptions)(options);
42
42
  const distDir = import_node_path.default.resolve(pwd, config.output.path || "dist");
43
- const serverConfig = (0, import_node.loadServerConfig)(distDir, serverConfigFile, serverConfigPath);
43
+ const serverConfig = (0, import_node.loadServerRuntimeConfig)(distDir, serverConfigFile, serverConfigPath);
44
44
  const prodServerOptions = {
45
45
  ...options,
46
46
  pwd: distDir
@@ -4,7 +4,7 @@ import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props";
4
4
  import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator";
5
5
  import path from "node:path";
6
6
  import { createServerBase } from "@modern-js/server-core";
7
- import { createNodeServer, loadServerConfig } from "@modern-js/server-core/node";
7
+ import { createNodeServer, loadServerRuntimeConfig } from "@modern-js/server-core/node";
8
8
  import { getDevOptions } from "./helpers";
9
9
  import { devPlugin } from "./dev";
10
10
  var createDevServer = function() {
@@ -16,7 +16,7 @@ var createDevServer = function() {
16
16
  config = options.config, pwd = options.pwd, serverConfigFile = options.serverConfigFile, serverConfigPath = options.serverConfigPath;
17
17
  dev = getDevOptions(options);
18
18
  distDir = path.resolve(pwd, config.output.path || "dist");
19
- serverConfig = loadServerConfig(distDir, serverConfigFile, serverConfigPath);
19
+ serverConfig = loadServerRuntimeConfig(distDir, serverConfigFile, serverConfigPath);
20
20
  prodServerOptions = _object_spread_props(_object_spread({}, options), {
21
21
  pwd: distDir
22
22
  });
@@ -1,13 +1,13 @@
1
1
  import path from "node:path";
2
2
  import { createServerBase } from "@modern-js/server-core";
3
- import { createNodeServer, loadServerConfig } from "@modern-js/server-core/node";
3
+ import { createNodeServer, loadServerRuntimeConfig } from "@modern-js/server-core/node";
4
4
  import { getDevOptions } from "./helpers";
5
5
  import { devPlugin } from "./dev";
6
6
  const createDevServer = async (options, applyPlugins) => {
7
7
  const { config, pwd, serverConfigFile, serverConfigPath } = options;
8
8
  const dev = getDevOptions(options);
9
9
  const distDir = path.resolve(pwd, config.output.path || "dist");
10
- const serverConfig = loadServerConfig(distDir, serverConfigFile, serverConfigPath);
10
+ const serverConfig = loadServerRuntimeConfig(distDir, serverConfigFile, serverConfigPath);
11
11
  const prodServerOptions = {
12
12
  ...options,
13
13
  pwd: distDir
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.54.2",
18
+ "version": "2.54.3",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "types": "./dist/types/index.d.ts",
21
21
  "main": "./dist/cjs/index.js",
@@ -48,11 +48,11 @@
48
48
  "minimatch": "^3.0.4",
49
49
  "path-to-regexp": "^6.2.0",
50
50
  "ws": "^8.13.0",
51
- "@modern-js/runtime-utils": "2.54.2",
52
- "@modern-js/types": "2.54.2",
53
- "@modern-js/server-utils": "2.54.2",
54
- "@modern-js/server-core": "2.54.2",
55
- "@modern-js/utils": "2.54.2"
51
+ "@modern-js/server-utils": "2.54.3",
52
+ "@modern-js/runtime-utils": "2.54.3",
53
+ "@modern-js/types": "2.54.3",
54
+ "@modern-js/utils": "2.54.3",
55
+ "@modern-js/server-core": "2.54.3"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@rsbuild/core": "0.7.9",
@@ -68,8 +68,8 @@
68
68
  "typescript": "^5",
69
69
  "webpack": "^5.92.0",
70
70
  "websocket": "^1",
71
- "@scripts/build": "2.54.2",
72
- "@scripts/jest-config": "2.54.2"
71
+ "@scripts/build": "2.54.3",
72
+ "@scripts/jest-config": "2.54.3"
73
73
  },
74
74
  "peerDependencies": {
75
75
  "devcert": "^1.2.2",