vite-react-ssg 0.8.0-beta.2 → 0.8.0-beta.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.
- package/dist/node/cli.cjs +1 -1
- package/dist/node/cli.mjs +1 -1
- package/dist/node.cjs +1 -1
- package/dist/node.mjs +1 -1
- package/dist/shared/{vite-react-ssg.Dyp0kt3B.cjs → vite-react-ssg.B_F2Ry8F.cjs} +8 -2
- package/dist/shared/{vite-react-ssg.BoLst82g.mjs → vite-react-ssg.CphxiYA9.mjs} +7 -1
- package/package.json +1 -1
package/dist/node/cli.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const kolorist = require('kolorist');
|
|
4
4
|
const yargs = require('yargs');
|
|
5
5
|
const helpers = require('yargs/helpers');
|
|
6
|
-
const dev = require('../shared/vite-react-ssg.
|
|
6
|
+
const dev = require('../shared/vite-react-ssg.B_F2Ry8F.cjs');
|
|
7
7
|
const webFetch = require('@remix-run/web-fetch');
|
|
8
8
|
require('node:path');
|
|
9
9
|
require('node:module');
|
package/dist/node/cli.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { gray, bold, red, reset, underline } from 'kolorist';
|
|
2
2
|
import yargs from 'yargs';
|
|
3
3
|
import { hideBin } from 'yargs/helpers';
|
|
4
|
-
import { b as build, d as dev } from '../shared/vite-react-ssg.
|
|
4
|
+
import { b as build, d as dev } from '../shared/vite-react-ssg.CphxiYA9.mjs';
|
|
5
5
|
import { Headers, Request, Response, fetch, FormData } from '@remix-run/web-fetch';
|
|
6
6
|
import 'node:path';
|
|
7
7
|
import 'node:module';
|
package/dist/node.cjs
CHANGED
package/dist/node.mjs
CHANGED
|
@@ -23,7 +23,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
23
23
|
const PQueue__default = /*#__PURE__*/_interopDefaultCompat(PQueue);
|
|
24
24
|
const fs__default = /*#__PURE__*/_interopDefaultCompat(fs);
|
|
25
25
|
|
|
26
|
-
const version = "0.8.0-beta.
|
|
26
|
+
const version = "0.8.0-beta.3";
|
|
27
27
|
|
|
28
28
|
function buildLog(text, count) {
|
|
29
29
|
console.log(`
|
|
@@ -765,6 +765,12 @@ async function build(ssgOptions = {}, viteConfig = {}) {
|
|
|
765
765
|
} : {
|
|
766
766
|
entryFileNames: "[name].cjs",
|
|
767
767
|
format: "cjs"
|
|
768
|
+
},
|
|
769
|
+
// @ts-expect-error rollup type
|
|
770
|
+
onLog(level, log, handler) {
|
|
771
|
+
if (log.message.includes("react-helmet-async"))
|
|
772
|
+
return;
|
|
773
|
+
handler(level, log);
|
|
768
774
|
}
|
|
769
775
|
}
|
|
770
776
|
},
|
|
@@ -775,7 +781,7 @@ async function build(ssgOptions = {}, viteConfig = {}) {
|
|
|
775
781
|
const ext = format === "esm" ? ".mjs" : ".cjs";
|
|
776
782
|
const serverEntry = node_path.join(prefix, ssgOut, node_path.parse(ssrEntry).name + ext);
|
|
777
783
|
const serverManifest = JSON.parse(await fs__default.readFile(node_path.join(ssgOut, ...dotVitedir, "manifest.json"), "utf-8"));
|
|
778
|
-
const _require = node_module.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('shared/vite-react-ssg.
|
|
784
|
+
const _require = node_module.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('shared/vite-react-ssg.B_F2Ry8F.cjs', document.baseURI).href)));
|
|
779
785
|
const { createRoot, includedRoutes: serverEntryIncludedRoutes } = format === "esm" ? await import(serverEntry) : _require(serverEntry);
|
|
780
786
|
const includedRoutes = serverEntryIncludedRoutes || configIncludedRoutes;
|
|
781
787
|
const { routes } = await createRoot(false);
|
|
@@ -15,7 +15,7 @@ import { once } from 'node:events';
|
|
|
15
15
|
import { c as convertRoutesToDataRoutes } from './vite-react-ssg.C0y5wbxl.mjs';
|
|
16
16
|
import { M as META_CONTAINER_ID } from './vite-react-ssg.4y2OEiyV.mjs';
|
|
17
17
|
|
|
18
|
-
const version = "0.8.0-beta.
|
|
18
|
+
const version = "0.8.0-beta.3";
|
|
19
19
|
|
|
20
20
|
function buildLog(text, count) {
|
|
21
21
|
console.log(`
|
|
@@ -757,6 +757,12 @@ async function build(ssgOptions = {}, viteConfig = {}) {
|
|
|
757
757
|
} : {
|
|
758
758
|
entryFileNames: "[name].cjs",
|
|
759
759
|
format: "cjs"
|
|
760
|
+
},
|
|
761
|
+
// @ts-expect-error rollup type
|
|
762
|
+
onLog(level, log, handler) {
|
|
763
|
+
if (log.message.includes("react-helmet-async"))
|
|
764
|
+
return;
|
|
765
|
+
handler(level, log);
|
|
760
766
|
}
|
|
761
767
|
}
|
|
762
768
|
},
|
package/package.json
CHANGED