weifuwu 0.17.22 → 0.17.23

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1018,7 +1018,9 @@ ${src}`;
1018
1018
  // ── client bundle ─────────────────────────────────────────────────────────
1019
1019
  async buildClientBundle(entryPath, layoutPaths, pagesDir) {
1020
1020
  try {
1021
+ const layoutImports = layoutPaths.map((p) => `import${JSON.stringify(p)};`).join("");
1021
1022
  const code = [
1023
+ layoutImports,
1022
1024
  `import{hydrateRoot}from'react-dom/client';`,
1023
1025
  `import{createElement,useState,useEffect}from'react';`,
1024
1026
  `import{TsxContext}from'weifuwu/react';`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "weifuwu",
3
- "version": "0.17.22",
3
+ "version": "0.17.23",
4
4
  "description": "Web-standard HTTP framework for Node.js — (req, ctx) => Response",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",