@rozie/babel-plugin 0.1.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.
@@ -0,0 +1,24 @@
1
+ import * as _$_babel_core0 from "@babel/core";
2
+ import { PluginObj } from "@babel/core";
3
+
4
+ //#region src/writeSibling.d.ts
5
+ type RozieBabelTarget = 'vue' | 'react' | 'svelte' | 'angular' | 'solid' | 'lit';
6
+ //#endregion
7
+ //#region src/index.d.ts
8
+ interface RozieBabelPluginOptions {
9
+ /** Required: target framework. Selects emit branch + sibling extension. */
10
+ target: RozieBabelTarget;
11
+ /**
12
+ * Phase 23 — per-target emit-semantics namespace (mirrors
13
+ * `CompileOptions.angular`). `angular.cva` (default ON) opts out of the auto
14
+ * `ControlValueAccessor` emit when `false`. Omitting it preserves the
15
+ * emitter default-ON path byte-identically to the other entrypoints.
16
+ * No-op for non-Angular targets.
17
+ */
18
+ angular?: {
19
+ cva?: boolean;
20
+ };
21
+ }
22
+ declare const _default: (api: object, options: RozieBabelPluginOptions | null | undefined, dirname: string) => PluginObj<_$_babel_core0.PluginPass>;
23
+ //#endregion
24
+ export { RozieBabelPluginOptions, _default as default };
@@ -0,0 +1,24 @@
1
+ import * as _$_babel_core0 from "@babel/core";
2
+ import { PluginObj } from "@babel/core";
3
+
4
+ //#region src/writeSibling.d.ts
5
+ type RozieBabelTarget = 'vue' | 'react' | 'svelte' | 'angular' | 'solid' | 'lit';
6
+ //#endregion
7
+ //#region src/index.d.ts
8
+ interface RozieBabelPluginOptions {
9
+ /** Required: target framework. Selects emit branch + sibling extension. */
10
+ target: RozieBabelTarget;
11
+ /**
12
+ * Phase 23 — per-target emit-semantics namespace (mirrors
13
+ * `CompileOptions.angular`). `angular.cva` (default ON) opts out of the auto
14
+ * `ControlValueAccessor` emit when `false`. Omitting it preserves the
15
+ * emitter default-ON path byte-identically to the other entrypoints.
16
+ * No-op for non-Angular targets.
17
+ */
18
+ angular?: {
19
+ cva?: boolean;
20
+ };
21
+ }
22
+ declare const _default: (api: object, options: RozieBabelPluginOptions | null | undefined, dirname: string) => PluginObj<_$_babel_core0.PluginPass>;
23
+ //#endregion
24
+ export { RozieBabelPluginOptions, _default as default };