@fictjs/compiler 0.2.0 → 0.2.1
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 +5928 -1551
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +5928 -1551
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -17,6 +17,10 @@ interface FictCompilerOptions {
|
|
|
17
17
|
getterCache?: boolean;
|
|
18
18
|
/** Emit fine-grained DOM creation/binding code for supported JSX templates */
|
|
19
19
|
fineGrainedDom?: boolean;
|
|
20
|
+
/** Enable HIR optimization passes (DCE/const-fold/CSE) */
|
|
21
|
+
optimize?: boolean;
|
|
22
|
+
/** Allow inlining single-use derived values even when user-named */
|
|
23
|
+
inlineDerivedMemos?: boolean;
|
|
20
24
|
}
|
|
21
25
|
|
|
22
26
|
declare const createFictPlugin: (api: object, options: FictCompilerOptions | null | undefined, dirname: string) => BabelCore.PluginObj<BabelCore.PluginPass>;
|
package/dist/index.d.ts
CHANGED
|
@@ -17,6 +17,10 @@ interface FictCompilerOptions {
|
|
|
17
17
|
getterCache?: boolean;
|
|
18
18
|
/** Emit fine-grained DOM creation/binding code for supported JSX templates */
|
|
19
19
|
fineGrainedDom?: boolean;
|
|
20
|
+
/** Enable HIR optimization passes (DCE/const-fold/CSE) */
|
|
21
|
+
optimize?: boolean;
|
|
22
|
+
/** Allow inlining single-use derived values even when user-named */
|
|
23
|
+
inlineDerivedMemos?: boolean;
|
|
20
24
|
}
|
|
21
25
|
|
|
22
26
|
declare const createFictPlugin: (api: object, options: FictCompilerOptions | null | undefined, dirname: string) => BabelCore.PluginObj<BabelCore.PluginPass>;
|