@modern-js/plugin-ssg 3.0.0-alpha.2 → 3.0.1

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.
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import path from "path";
4
3
  import { filterRoutesForServer, logger } from "@modern-js/utils";
5
4
  import { makeRoute } from "./libs/make.mjs";
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import path from "path";
4
3
  import normalize_path from "normalize-path";
5
4
  function makeRender(ssgRoutes, render, port) {
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import path from "path";
4
3
  import { fs } from "@modern-js/utils";
5
4
  function writeHtmlFile(htmlAry, ssgRoutes, baseDir) {
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import normalize_path from "normalize-path";
4
3
  function exist(route, pageRoutes) {
5
4
  return pageRoutes.slice().findIndex((pageRoute)=>{
@@ -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_0 from "path";
4
4
  import { ROUTE_SPEC_FILE, SERVER_BUNDLE_DIRECTORY, fs, isSingleEntry } from "@modern-js/utils";
5
5
  function formatOutput(filename) {
@@ -1,4 +1,3 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  const CLOSE_SIGN = 'modern_close_server';
4
3
  export { CLOSE_SIGN };
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import { IncomingMessage, ServerResponse } from "node:http";
4
3
  import path from "path";
5
4
  import { createProdServer, loadServerPlugins } from "@modern-js/prod-server";
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import events from "events";
4
3
  import { Readable } from "stream";
5
4
  import node_mocks_http from "node-mocks-http";
@@ -1,2 +1 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "3.0.0-alpha.2",
18
+ "version": "3.0.1",
19
19
  "types": "./dist/types/index.d.ts",
20
20
  "main": "./dist/cjs/index.js",
21
21
  "typesVersions": {
@@ -47,8 +47,8 @@
47
47
  "@swc/helpers": "^0.5.17",
48
48
  "node-mocks-http": "^1.17.2",
49
49
  "normalize-path": "3.0.0",
50
- "@modern-js/prod-server": "3.0.0-alpha.2",
51
- "@modern-js/utils": "3.0.0-alpha.2"
50
+ "@modern-js/prod-server": "3.0.1",
51
+ "@modern-js/utils": "3.0.1"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "react-router-dom": ">=7.12.0"
@@ -59,15 +59,15 @@
59
59
  }
60
60
  },
61
61
  "devDependencies": {
62
- "@rslib/core": "0.19.3",
62
+ "@rslib/core": "0.19.4",
63
63
  "@types/node": "^20",
64
- "react": "^19.2.3",
65
- "react-dom": "^19.2.3",
64
+ "react": "^19.2.4",
65
+ "react-dom": "^19.2.4",
66
66
  "react-router-dom": "^7.12.0",
67
67
  "typescript": "^5",
68
- "@modern-js/app-tools": "3.0.0-alpha.2",
68
+ "@modern-js/app-tools": "3.0.1",
69
69
  "@modern-js/rslib": "2.68.10",
70
- "@modern-js/types": "3.0.0-alpha.2",
70
+ "@modern-js/types": "3.0.1",
71
71
  "@scripts/rstest-config": "2.66.0"
72
72
  },
73
73
  "sideEffects": false,