@modern-js/server 3.0.0-alpha.2 → 3.0.0
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/esm-node/createDevServer.mjs +0 -1
- package/dist/esm-node/dev-tools/https/index.mjs +1 -1
- package/dist/esm-node/dev-tools/watcher/dependencyTree.mjs +0 -1
- package/dist/esm-node/dev-tools/watcher/index.mjs +1 -1
- package/dist/esm-node/dev-tools/watcher/statsCache.mjs +0 -1
- package/dist/esm-node/dev.mjs +0 -1
- package/dist/esm-node/helpers/devOptions.mjs +0 -1
- package/dist/esm-node/helpers/fileReader.mjs +0 -1
- package/dist/esm-node/helpers/index.mjs +1 -1
- package/dist/esm-node/helpers/mock.mjs +0 -1
- package/dist/esm-node/helpers/repack.mjs +1 -1
- package/dist/esm-node/helpers/utils.mjs +0 -1
- package/dist/esm-node/index.mjs +0 -1
- package/dist/esm-node/types.mjs +0 -1
- package/package.json +11 -11
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import __rslib_shim_module__ from "node:module";
|
|
2
|
-
const require = /*#__PURE__*/ __rslib_shim_module__.createRequire(import.meta.url);
|
|
2
|
+
const require = /*#__PURE__*/ __rslib_shim_module__.createRequire(/*#__PURE__*/ (()=>import.meta.url)());
|
|
3
3
|
import { fileURLToPath as __rspack_fileURLToPath } from "node:url";
|
|
4
4
|
import { dirname as __rspack_dirname } from "node:path";
|
|
5
5
|
import { chalk, getPackageManager, logger, tryResolve } from "@modern-js/utils";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import __rslib_shim_module__ from "node:module";
|
|
2
|
-
const require = /*#__PURE__*/ __rslib_shim_module__.createRequire(import.meta.url);
|
|
2
|
+
const require = /*#__PURE__*/ __rslib_shim_module__.createRequire(/*#__PURE__*/ (()=>import.meta.url)());
|
|
3
3
|
import path from "path";
|
|
4
4
|
import { chokidar, fs } from "@modern-js/utils";
|
|
5
5
|
import { DependencyTree } from "./dependencyTree.mjs";
|
package/dist/esm-node/dev.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import "node:module";
|
|
2
|
-
/*#__PURE__*/ import.meta.url;
|
|
3
2
|
import { connectMid2HonoMid } from "@modern-js/server-core/node";
|
|
4
3
|
import { API_DIR, SHARED_DIR } from "@modern-js/utils";
|
|
5
4
|
import { getDevOptions, getMockMiddleware, initFileReader, onRepack, startWatcher } from "./helpers/index.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import __rslib_shim_module__ from "node:module";
|
|
2
|
-
const require = /*#__PURE__*/ __rslib_shim_module__.createRequire(import.meta.url);
|
|
2
|
+
const require = /*#__PURE__*/ __rslib_shim_module__.createRequire(/*#__PURE__*/ (()=>import.meta.url)());
|
|
3
3
|
import path from "path";
|
|
4
4
|
import { AGGRED_DIR } from "@modern-js/server-core";
|
|
5
5
|
import { SERVER_BUNDLE_DIRECTORY, SERVER_DIR, logger } from "@modern-js/utils";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import __rslib_shim_module__ from "node:module";
|
|
2
|
-
const require = /*#__PURE__*/ __rslib_shim_module__.createRequire(import.meta.url);
|
|
2
|
+
const require = /*#__PURE__*/ __rslib_shim_module__.createRequire(/*#__PURE__*/ (()=>import.meta.url)());
|
|
3
3
|
import { fileReader } from "@modern-js/runtime-utils/fileReader";
|
|
4
4
|
const cleanSSRCache = (distDir)=>{
|
|
5
5
|
Object.keys(require.cache).forEach((key)=>{
|
package/dist/esm-node/index.mjs
CHANGED
package/dist/esm-node/types.mjs
CHANGED
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "3.0.0
|
|
18
|
+
"version": "3.0.0",
|
|
19
19
|
"types": "./dist/types/index.d.ts",
|
|
20
20
|
"main": "./dist/cjs/index.js",
|
|
21
21
|
"exports": {
|
|
@@ -38,20 +38,20 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@swc/helpers": "^0.5.17",
|
|
41
|
-
"axios": "^1.13.
|
|
41
|
+
"axios": "^1.13.4",
|
|
42
42
|
"connect-history-api-fallback": "^2.0.0",
|
|
43
43
|
"http-compression": "1.0.6",
|
|
44
44
|
"minimatch": "^3.1.2",
|
|
45
45
|
"path-to-regexp": "^6.3.0",
|
|
46
46
|
"ws": "^8.19.0",
|
|
47
|
-
"@modern-js/
|
|
48
|
-
"@modern-js/
|
|
49
|
-
"@modern-js/
|
|
50
|
-
"@modern-js/
|
|
51
|
-
"@modern-js/utils": "3.0.0
|
|
47
|
+
"@modern-js/server-core": "3.0.0",
|
|
48
|
+
"@modern-js/runtime-utils": "3.0.0",
|
|
49
|
+
"@modern-js/types": "3.0.0",
|
|
50
|
+
"@modern-js/utils": "3.0.0",
|
|
51
|
+
"@modern-js/server-utils": "3.0.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@rslib/core": "0.19.
|
|
54
|
+
"@rslib/core": "0.19.4",
|
|
55
55
|
"@types/connect-history-api-fallback": "^1.5.4",
|
|
56
56
|
"@types/minimatch": "^3.0.5",
|
|
57
57
|
"@types/node": "^20",
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
"tsconfig-paths": "4.2.0",
|
|
62
62
|
"typescript": "^5",
|
|
63
63
|
"websocket": "^1.0.35",
|
|
64
|
-
"@
|
|
65
|
-
"@modern-js/
|
|
66
|
-
"@
|
|
64
|
+
"@scripts/rstest-config": "2.66.0",
|
|
65
|
+
"@modern-js/builder": "3.0.0",
|
|
66
|
+
"@modern-js/rslib": "2.68.10"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
69
|
"devcert": "^1.2.2",
|