weifuwu 0.19.7 → 0.19.9

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/react.js CHANGED
@@ -192,7 +192,7 @@ async function navigate(href) {
192
192
  location.href = href;
193
193
  return;
194
194
  }
195
- const bundleMatch = html.match(/src="(\/__wfw\/client\/[^"]+\.js)"/);
195
+ const bundleMatch = html.match(/src="(\/__ssr\/[^"]+\.js)"/);
196
196
  const bundleUrl = bundleMatch ? bundleMatch[1] : null;
197
197
  applyHead(html);
198
198
  const currentRoot = document.getElementById("__weifuwu_root");
@@ -0,0 +1,4 @@
1
+ export interface SsrEntry {
2
+ path: string;
3
+ }
4
+ export declare const ssrEntries: Map<string, SsrEntry>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "weifuwu",
3
- "version": "0.19.7",
3
+ "version": "0.19.9",
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",
@@ -20,6 +20,8 @@
20
20
  "LICENSE"
21
21
  ],
22
22
  "scripts": {
23
+ "dev": "node --watch ./cli/template/index.ts",
24
+ "start": "NODE_ENV=production node ./cli/template/index.ts",
23
25
  "build": "esbuild index.ts --bundle --format=esm --platform=node --outfile=dist/index.js --packages=external && esbuild cli.ts --bundle --format=esm --platform=node --outfile=dist/cli.js --packages=external && esbuild react.ts --bundle --format=esm --outfile=dist/react.js --external:react --external:react-dom",
24
26
  "prepublishOnly": "npm run build && tsc --emitDeclarationOnly --outdir dist",
25
27
  "test": "node --test 'test/**/*.test.ts'"