@fictjs/compiler 0.4.0 → 0.5.0
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.cjs +739 -81
- package/dist/index.d.cts +16 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +739 -81
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -29,6 +29,22 @@ interface FictCompilerOptions {
|
|
|
29
29
|
getterCache?: boolean;
|
|
30
30
|
/** Emit fine-grained DOM creation/binding code for supported JSX templates */
|
|
31
31
|
fineGrainedDom?: boolean;
|
|
32
|
+
/** Enable resumable output (QRL handlers + resume metadata). */
|
|
33
|
+
resumable?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Automatically extract event handlers for lazy loading even without `$` suffix.
|
|
36
|
+
* When enabled, the compiler analyzes handlers and extracts complex ones automatically.
|
|
37
|
+
* Handlers with explicit `$` suffix are always extracted regardless of this setting.
|
|
38
|
+
* @default true when resumable is enabled
|
|
39
|
+
*/
|
|
40
|
+
autoExtractHandlers?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Minimum AST node count for a handler to be auto-extracted.
|
|
43
|
+
* Handlers with fewer nodes are considered too simple and will be inlined.
|
|
44
|
+
* Only applies when autoExtractHandlers is enabled.
|
|
45
|
+
* @default 3
|
|
46
|
+
*/
|
|
47
|
+
autoExtractThreshold?: number;
|
|
32
48
|
/** Enable HIR optimization passes (DCE/const-fold/CSE) */
|
|
33
49
|
optimize?: boolean;
|
|
34
50
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -29,6 +29,22 @@ interface FictCompilerOptions {
|
|
|
29
29
|
getterCache?: boolean;
|
|
30
30
|
/** Emit fine-grained DOM creation/binding code for supported JSX templates */
|
|
31
31
|
fineGrainedDom?: boolean;
|
|
32
|
+
/** Enable resumable output (QRL handlers + resume metadata). */
|
|
33
|
+
resumable?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Automatically extract event handlers for lazy loading even without `$` suffix.
|
|
36
|
+
* When enabled, the compiler analyzes handlers and extracts complex ones automatically.
|
|
37
|
+
* Handlers with explicit `$` suffix are always extracted regardless of this setting.
|
|
38
|
+
* @default true when resumable is enabled
|
|
39
|
+
*/
|
|
40
|
+
autoExtractHandlers?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Minimum AST node count for a handler to be auto-extracted.
|
|
43
|
+
* Handlers with fewer nodes are considered too simple and will be inlined.
|
|
44
|
+
* Only applies when autoExtractHandlers is enabled.
|
|
45
|
+
* @default 3
|
|
46
|
+
*/
|
|
47
|
+
autoExtractThreshold?: number;
|
|
32
48
|
/** Enable HIR optimization passes (DCE/const-fold/CSE) */
|
|
33
49
|
optimize?: boolean;
|
|
34
50
|
/**
|