@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.
- package/LICENSE +21 -0
- package/README.md +44 -0
- package/dist/index.cjs +87796 -0
- package/dist/index.d.cts +24 -0
- package/dist/index.d.mts +24 -0
- package/dist/index.mjs +87722 -0
- package/package.json +60 -0
- package/src/compileImport.ts +22 -0
- package/src/index.ts +114 -0
- package/src/writeSibling.ts +122 -0
package/dist/index.d.cts
ADDED
|
@@ -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 };
|
package/dist/index.d.mts
ADDED
|
@@ -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 };
|