@fictjs/compiler 0.0.2

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.
@@ -0,0 +1,24 @@
1
+ import * as BabelCore from '@babel/core';
2
+
3
+ interface CompilerWarning {
4
+ code: string;
5
+ message: string;
6
+ fileName: string;
7
+ line: number;
8
+ column: number;
9
+ }
10
+ interface FictCompilerOptions {
11
+ dev?: boolean;
12
+ sourcemap?: boolean;
13
+ onWarn?: (warning: CompilerWarning) => void;
14
+ /** Enable lazy evaluation of conditional derived values (Rule J optimization) */
15
+ lazyConditional?: boolean;
16
+ /** Enable getter caching within the same sync block (Rule L optimization) */
17
+ getterCache?: boolean;
18
+ /** Emit fine-grained DOM creation/binding code for supported JSX templates */
19
+ fineGrainedDom?: boolean;
20
+ }
21
+
22
+ declare const createFictPlugin: (api: object, options: FictCompilerOptions | null | undefined, dirname: string) => BabelCore.PluginObj<BabelCore.PluginPass>;
23
+
24
+ export { type CompilerWarning, type FictCompilerOptions, createFictPlugin, createFictPlugin as default };
@@ -0,0 +1,24 @@
1
+ import * as BabelCore from '@babel/core';
2
+
3
+ interface CompilerWarning {
4
+ code: string;
5
+ message: string;
6
+ fileName: string;
7
+ line: number;
8
+ column: number;
9
+ }
10
+ interface FictCompilerOptions {
11
+ dev?: boolean;
12
+ sourcemap?: boolean;
13
+ onWarn?: (warning: CompilerWarning) => void;
14
+ /** Enable lazy evaluation of conditional derived values (Rule J optimization) */
15
+ lazyConditional?: boolean;
16
+ /** Enable getter caching within the same sync block (Rule L optimization) */
17
+ getterCache?: boolean;
18
+ /** Emit fine-grained DOM creation/binding code for supported JSX templates */
19
+ fineGrainedDom?: boolean;
20
+ }
21
+
22
+ declare const createFictPlugin: (api: object, options: FictCompilerOptions | null | undefined, dirname: string) => BabelCore.PluginObj<BabelCore.PluginPass>;
23
+
24
+ export { type CompilerWarning, type FictCompilerOptions, createFictPlugin, createFictPlugin as default };