@funstack/static 1.1.0 → 1.1.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.
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
* Get the entry point module of the RSC environment.
|
|
4
4
|
*/
|
|
5
5
|
async function getRSCEntryPoint(environment) {
|
|
6
|
-
const
|
|
6
|
+
const buildConfig = environment.config.build;
|
|
7
|
+
const rscInput = (buildConfig.rolldownOptions ?? buildConfig.rollupOptions)?.input;
|
|
7
8
|
const source = rscInput !== void 0 && typeof rscInput !== "string" && !Array.isArray(rscInput) ? rscInput.index : void 0;
|
|
8
9
|
if (source === void 0) throw new Error("Cannot determine RSC entry point");
|
|
9
10
|
const resolved = await environment.pluginContainer.resolveId(source);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRSCEntryPoint.mjs","names":[],"sources":["../../src/plugin/getRSCEntryPoint.ts"],"sourcesContent":["import type { RunnableDevEnvironment } from \"vite\";\n\n/**\n * Get the entry point module of the RSC environment.\n */\nexport async function getRSCEntryPoint(environment: RunnableDevEnvironment) {\n const
|
|
1
|
+
{"version":3,"file":"getRSCEntryPoint.mjs","names":[],"sources":["../../src/plugin/getRSCEntryPoint.ts"],"sourcesContent":["import type { RunnableDevEnvironment } from \"vite\";\n\n/**\n * Get the entry point module of the RSC environment.\n */\nexport async function getRSCEntryPoint(environment: RunnableDevEnvironment) {\n // Vite 8 renamed rollupOptions to rolldownOptions; support both for Vite 7 compat\n const buildConfig = environment.config.build;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any -- Vite 7 compat\n const rscInput = (\n buildConfig.rolldownOptions ?? (buildConfig as any).rollupOptions\n )?.input;\n const source =\n rscInput !== undefined &&\n typeof rscInput !== \"string\" &&\n !Array.isArray(rscInput)\n ? rscInput.index\n : undefined;\n if (source === undefined) {\n throw new Error(\"Cannot determine RSC entry point\");\n }\n const resolved = await environment.pluginContainer.resolveId(source);\n if (!resolved) {\n throw new Error(`Cannot resolve RSC entry: ${source}`);\n }\n const rscEntry = await environment.runner.import<\n typeof import(\"../rsc/entry\")\n >(resolved.id);\n return rscEntry;\n}\n"],"mappings":";;;;AAKA,eAAsB,iBAAiB,aAAqC;CAE1E,MAAM,cAAc,YAAY,OAAO;CAEvC,MAAM,YACJ,YAAY,mBAAoB,YAAoB,gBACnD;CACH,MAAM,SACJ,aAAa,KAAA,KACb,OAAO,aAAa,YACpB,CAAC,MAAM,QAAQ,SAAS,GACpB,SAAS,QACT,KAAA;AACN,KAAI,WAAW,KAAA,EACb,OAAM,IAAI,MAAM,mCAAmC;CAErD,MAAM,WAAW,MAAM,YAAY,gBAAgB,UAAU,OAAO;AACpE,KAAI,CAAC,SACH,OAAM,IAAI,MAAM,6BAA6B,SAAS;AAKxD,QAHiB,MAAM,YAAY,OAAO,OAExC,SAAS,GAAG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funstack/static",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "FUNSTACK static library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -47,28 +47,28 @@
|
|
|
47
47
|
"license": "MIT",
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@playwright/test": "^1.58.2",
|
|
50
|
-
"@types/node": "^25.
|
|
50
|
+
"@types/node": "^25.5.0",
|
|
51
51
|
"@types/react": "^19.2.14",
|
|
52
52
|
"@types/react-dom": "^19.2.3",
|
|
53
|
-
"jsdom": "^
|
|
53
|
+
"jsdom": "^29.0.0",
|
|
54
54
|
"react": "^19.2.4",
|
|
55
55
|
"react-dom": "^19.2.4",
|
|
56
|
-
"tsdown": "^0.21.
|
|
56
|
+
"tsdown": "^0.21.4",
|
|
57
57
|
"typescript": "^5.9.3",
|
|
58
|
-
"vite": "^
|
|
59
|
-
"vitest": "^4.0
|
|
58
|
+
"vite": "^8.0.0",
|
|
59
|
+
"vitest": "^4.1.0"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
62
|
"@funstack/skill-installer": "^1.0.0",
|
|
63
63
|
"@vitejs/plugin-rsc": "^0.5.21",
|
|
64
64
|
"react-error-boundary": "^6.1.1",
|
|
65
65
|
"rsc-html-stream": "^0.0.7",
|
|
66
|
-
"srvx": "^0.11.
|
|
66
|
+
"srvx": "^0.11.12"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
69
|
"react": "^19.2.3",
|
|
70
70
|
"react-dom": "^19.2.3",
|
|
71
|
-
"vite": "^7.
|
|
71
|
+
"vite": "^7.0.0 || ^8.0.0"
|
|
72
72
|
},
|
|
73
73
|
"scripts": {
|
|
74
74
|
"build": "tsdown",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import { DeferredComponent, RegistryContext } from "./clientWrapper.mjs";
|