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.
- package/dist/index.js +2 -0
- 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';`,
|