weifuwu 0.24.2 → 0.24.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/compile.d.ts CHANGED
@@ -2,21 +2,16 @@ export declare const OUT_DIR = ".weifuwu/ssr";
2
2
  export declare function id(s: string): string;
3
3
  export declare function clearCompileCache(): void;
4
4
  export declare function compileTsx(path: string): Promise<any>;
5
- /** Dev hot-reload: CJS + in-memory + vm (faster than ESM + disk + import) */
6
- export declare function compileTsxDev(path: string): Promise<any>;
7
- /** Auto-select dev (vm) or prod (ESM + import) compilation */
5
+ /**
6
+ * Dev hot-reload: per-file transformSync (~0.5ms) + shared vm context.
7
+ * No bundler, no disk I/O. Relative imports are resolved through
8
+ * server-registry recursively.
9
+ */
10
+ export declare function compileTsxDev(path: string): any;
11
+ /** Auto-select dev (registry+vm) or prod (ESM + import) compilation */
8
12
  export declare function compile(path: string): Promise<any>;
9
13
  export declare let vendorHash: string;
10
14
  /** Build a single vendor bundle containing all needed vendor modules */
11
15
  export declare function compileVendorBundle(): Promise<string>;
12
- /** Compile page component for browser (served at /__ssr/[hash].js).
13
- * The weifuwu source modules are externalized — they come from the vendor
14
- * bundle at runtime via importmap, ensuring store is shared. */
15
- export declare function compileBrowser(path: string, outDir?: string): Promise<string>;
16
- /** Hot-reload: ESM bundle, calls __WFW_REFRESH on import */
17
- export declare function compileHotComponent(path: string): Promise<{
18
- hash: string;
19
- code: string;
20
- }>;
21
16
  /** Clean up esbuild's internal worker pool. Call when you're done compiling. */
22
17
  export declare function closeCompile(): Promise<void>;