@powerlines/plugin-babel 0.12.306 → 0.12.308

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.
Files changed (159) hide show
  1. package/dist/ast-utils-BcmWaIan.cjs +45 -0
  2. package/dist/ast-utils-BgcE0CUh.mjs +33 -0
  3. package/dist/ast-utils-BgcE0CUh.mjs.map +1 -0
  4. package/dist/ast-utils-BrOP-SXX.d.cts +20 -0
  5. package/dist/ast-utils-BrOP-SXX.d.cts.map +1 -0
  6. package/dist/ast-utils-c95WpQzC.d.mts +20 -0
  7. package/dist/ast-utils-c95WpQzC.d.mts.map +1 -0
  8. package/dist/{_virtual/rolldown_runtime.cjs → chunk-CbDLau6x.cjs} +6 -1
  9. package/dist/config-B8fQjuSs.d.cts +86 -0
  10. package/dist/config-B8fQjuSs.d.cts.map +1 -0
  11. package/dist/config-BGnCc0aq.d.mts +86 -0
  12. package/dist/config-BGnCc0aq.d.mts.map +1 -0
  13. package/dist/config-BLkkDfsC.mjs +1 -0
  14. package/dist/config-QK0F_KAD.cjs +0 -0
  15. package/dist/create-plugin-BbG_dRTl.mjs +40 -0
  16. package/dist/create-plugin-BbG_dRTl.mjs.map +1 -0
  17. package/dist/create-plugin-D1_rga7H.d.cts +16 -0
  18. package/dist/create-plugin-D1_rga7H.d.cts.map +1 -0
  19. package/dist/create-plugin-DaXcRyMI.cjs +46 -0
  20. package/dist/create-plugin-H35OVSz7.d.mts +16 -0
  21. package/dist/create-plugin-H35OVSz7.d.mts.map +1 -0
  22. package/dist/filters-CU0L1nIa.cjs +79 -0
  23. package/dist/filters-DX-_VLWz.d.mts +43 -0
  24. package/dist/filters-DX-_VLWz.d.mts.map +1 -0
  25. package/dist/filters-DjAUc6r9.mjs +56 -0
  26. package/dist/filters-DjAUc6r9.mjs.map +1 -0
  27. package/dist/filters-xc5uoxxD.d.cts +43 -0
  28. package/dist/filters-xc5uoxxD.d.cts.map +1 -0
  29. package/dist/helpers/ast-utils.cjs +3 -34
  30. package/dist/helpers/ast-utils.d.cts +2 -20
  31. package/dist/helpers/ast-utils.d.mts +2 -20
  32. package/dist/helpers/ast-utils.mjs +2 -32
  33. package/dist/helpers/create-plugin.cjs +2 -40
  34. package/dist/helpers/create-plugin.d.cts +3 -16
  35. package/dist/helpers/create-plugin.d.mts +3 -17
  36. package/dist/helpers/create-plugin.mjs +2 -39
  37. package/dist/helpers/filters.cjs +5 -58
  38. package/dist/helpers/filters.d.cts +3 -43
  39. package/dist/helpers/filters.d.mts +3 -44
  40. package/dist/helpers/filters.mjs +2 -55
  41. package/dist/helpers/index.cjs +22 -21
  42. package/dist/helpers/index.d.cts +7 -5
  43. package/dist/helpers/index.d.mts +7 -5
  44. package/dist/helpers/index.mjs +6 -5
  45. package/dist/helpers/module-helpers.cjs +9 -102
  46. package/dist/helpers/module-helpers.d.cts +3 -50
  47. package/dist/helpers/module-helpers.d.mts +3 -50
  48. package/dist/helpers/module-helpers.mjs +3 -95
  49. package/dist/helpers/options.cjs +4 -48
  50. package/dist/helpers/options.d.cts +3 -19
  51. package/dist/helpers/options.d.mts +3 -20
  52. package/dist/helpers/options.mjs +3 -46
  53. package/dist/helpers-Bx2yBrpn.cjs +0 -0
  54. package/dist/helpers-DemUUgdw.mjs +1 -0
  55. package/dist/index-C2gUMYkE.d.cts +1 -0
  56. package/dist/index-D8dPsry7.d.mts +1 -0
  57. package/dist/index-OEBbnNdr.d.mts +1 -0
  58. package/dist/index-uTS5iDq_.d.cts +1 -0
  59. package/dist/index.cjs +30 -27
  60. package/dist/index.d.cts +10 -8
  61. package/dist/index.d.cts.map +1 -1
  62. package/dist/index.d.mts +10 -11
  63. package/dist/index.d.mts.map +1 -1
  64. package/dist/index.mjs +9 -6
  65. package/dist/index.mjs.map +1 -1
  66. package/dist/module-helpers-B913A2FR.d.mts +50 -0
  67. package/dist/module-helpers-B913A2FR.d.mts.map +1 -0
  68. package/dist/module-helpers-BBKb6fKg.d.cts +50 -0
  69. package/dist/module-helpers-BBKb6fKg.d.cts.map +1 -0
  70. package/dist/module-helpers-DtOc93YQ.mjs +96 -0
  71. package/dist/module-helpers-DtOc93YQ.mjs.map +1 -0
  72. package/dist/module-helpers-Non-jHMu.cjs +138 -0
  73. package/dist/options-2JL6WIXT.cjs +59 -0
  74. package/dist/options-CNyetWnk.d.cts +19 -0
  75. package/dist/options-CNyetWnk.d.cts.map +1 -0
  76. package/dist/options-DT_wvMGu.mjs +47 -0
  77. package/dist/options-DT_wvMGu.mjs.map +1 -0
  78. package/dist/options-Z_v0-Y5V.d.mts +19 -0
  79. package/dist/options-Z_v0-Y5V.d.mts.map +1 -0
  80. package/dist/plugin-10Y9IjgN.d.cts +19 -0
  81. package/dist/plugin-10Y9IjgN.d.cts.map +1 -0
  82. package/dist/plugin-25m6BdNV.d.mts +19 -0
  83. package/dist/plugin-25m6BdNV.d.mts.map +1 -0
  84. package/dist/plugin-BX9Q6Mnb.mjs +1 -0
  85. package/dist/plugin-DkYJiG5m.cjs +0 -0
  86. package/dist/types/config.cjs +1 -0
  87. package/dist/types/config.d.cts +2 -87
  88. package/dist/types/config.d.mts +2 -88
  89. package/dist/types/config.mjs +2 -0
  90. package/dist/types/index.cjs +3 -0
  91. package/dist/types/index.d.cts +3 -2
  92. package/dist/types/index.d.mts +3 -2
  93. package/dist/types/index.mjs +4 -0
  94. package/dist/types/plugin.cjs +1 -0
  95. package/dist/types/plugin.d.cts +3 -20
  96. package/dist/types/plugin.d.mts +3 -21
  97. package/dist/types/plugin.mjs +2 -0
  98. package/dist/types-Bjn15Uy6.mjs +1 -0
  99. package/dist/types-D10T4PdD.cjs +0 -0
  100. package/package.json +2 -2
  101. package/dist/core/src/lib/logger.cjs +0 -41
  102. package/dist/core/src/lib/logger.mjs +0 -40
  103. package/dist/core/src/lib/logger.mjs.map +0 -1
  104. package/dist/core/src/types/api.d.cts +0 -103
  105. package/dist/core/src/types/api.d.cts.map +0 -1
  106. package/dist/core/src/types/api.d.mts +0 -103
  107. package/dist/core/src/types/api.d.mts.map +0 -1
  108. package/dist/core/src/types/commands.d.cts +0 -9
  109. package/dist/core/src/types/commands.d.cts.map +0 -1
  110. package/dist/core/src/types/commands.d.mts +0 -10
  111. package/dist/core/src/types/commands.d.mts.map +0 -1
  112. package/dist/core/src/types/config.d.cts +0 -551
  113. package/dist/core/src/types/config.d.cts.map +0 -1
  114. package/dist/core/src/types/config.d.mts +0 -551
  115. package/dist/core/src/types/config.d.mts.map +0 -1
  116. package/dist/core/src/types/context.d.cts +0 -511
  117. package/dist/core/src/types/context.d.cts.map +0 -1
  118. package/dist/core/src/types/context.d.mts +0 -511
  119. package/dist/core/src/types/context.d.mts.map +0 -1
  120. package/dist/core/src/types/fs.d.cts +0 -487
  121. package/dist/core/src/types/fs.d.cts.map +0 -1
  122. package/dist/core/src/types/fs.d.mts +0 -487
  123. package/dist/core/src/types/fs.d.mts.map +0 -1
  124. package/dist/core/src/types/hooks.d.cts +0 -99
  125. package/dist/core/src/types/hooks.d.cts.map +0 -1
  126. package/dist/core/src/types/hooks.d.mts +0 -99
  127. package/dist/core/src/types/hooks.d.mts.map +0 -1
  128. package/dist/core/src/types/index.d.mts +0 -9
  129. package/dist/core/src/types/plugin.d.cts +0 -204
  130. package/dist/core/src/types/plugin.d.cts.map +0 -1
  131. package/dist/core/src/types/plugin.d.mts +0 -204
  132. package/dist/core/src/types/plugin.d.mts.map +0 -1
  133. package/dist/core/src/types/tsconfig.d.cts +0 -70
  134. package/dist/core/src/types/tsconfig.d.cts.map +0 -1
  135. package/dist/core/src/types/tsconfig.d.mts +0 -70
  136. package/dist/core/src/types/tsconfig.d.mts.map +0 -1
  137. package/dist/core/src/types/unplugin.d.cts +0 -24
  138. package/dist/core/src/types/unplugin.d.cts.map +0 -1
  139. package/dist/core/src/types/unplugin.d.mts +0 -25
  140. package/dist/core/src/types/unplugin.d.mts.map +0 -1
  141. package/dist/helpers/ast-utils.d.cts.map +0 -1
  142. package/dist/helpers/ast-utils.d.mts.map +0 -1
  143. package/dist/helpers/ast-utils.mjs.map +0 -1
  144. package/dist/helpers/create-plugin.d.cts.map +0 -1
  145. package/dist/helpers/create-plugin.d.mts.map +0 -1
  146. package/dist/helpers/create-plugin.mjs.map +0 -1
  147. package/dist/helpers/filters.d.cts.map +0 -1
  148. package/dist/helpers/filters.d.mts.map +0 -1
  149. package/dist/helpers/filters.mjs.map +0 -1
  150. package/dist/helpers/module-helpers.d.cts.map +0 -1
  151. package/dist/helpers/module-helpers.d.mts.map +0 -1
  152. package/dist/helpers/module-helpers.mjs.map +0 -1
  153. package/dist/helpers/options.d.cts.map +0 -1
  154. package/dist/helpers/options.d.mts.map +0 -1
  155. package/dist/helpers/options.mjs.map +0 -1
  156. package/dist/types/config.d.cts.map +0 -1
  157. package/dist/types/config.d.mts.map +0 -1
  158. package/dist/types/plugin.d.cts.map +0 -1
  159. package/dist/types/plugin.d.mts.map +0 -1
@@ -1,70 +0,0 @@
1
- import { CompilerOptions, TsConfigJson } from "@stryke/types/tsconfig";
2
- import ts from "typescript";
3
-
4
- //#region ../core/src/types/tsconfig.d.ts
5
- type ReflectionMode = "default" | "explicit" | "never";
6
- type RawReflectionMode = ReflectionMode | "" | boolean | string | string[] | undefined;
7
- /**
8
- * Defines the level of reflection to be used during the transpilation process.
9
- *
10
- * @remarks
11
- * The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
12
- * - `minimal` - Only the essential type information is captured.
13
- * - `normal` - Additional type information is captured, including some contextual data.
14
- * - `verbose` - All available type information is captured, including detailed contextual data.
15
- */
16
- type ReflectionLevel = "minimal" | "normal" | "verbose";
17
- interface DeepkitOptions {
18
- /**
19
- * Either true to activate reflection for all files compiled using this tsconfig,
20
- * or a list of globs/file paths relative to this tsconfig.json.
21
- * Globs/file paths can be prefixed with a ! to exclude them.
22
- */
23
- reflection?: RawReflectionMode;
24
- /**
25
- * Defines the level of reflection to be used during the transpilation process.
26
- *
27
- * @remarks
28
- * The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
29
- * - `minimal` - Only the essential type information is captured.
30
- * - `normal` - Additional type information is captured, including some contextual data.
31
- * - `verbose` - All available type information is captured, including detailed contextual data.
32
- */
33
- reflectionLevel?: ReflectionLevel;
34
- }
35
- type TSCompilerOptions = CompilerOptions & DeepkitOptions;
36
- /**
37
- * The TypeScript compiler configuration.
38
- *
39
- * @see https://www.typescriptlang.org/docs/handbook/tsconfig-json.html
40
- */
41
- interface TSConfig extends Omit<TsConfigJson, "reflection"> {
42
- /**
43
- * Either true to activate reflection for all files compiled using this tsconfig,
44
- * or a list of globs/file paths relative to this tsconfig.json.
45
- * Globs/file paths can be prefixed with a ! to exclude them.
46
- */
47
- reflection?: RawReflectionMode;
48
- /**
49
- * Defines the level of reflection to be used during the transpilation process.
50
- *
51
- * @remarks
52
- * The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
53
- * - `minimal` - Only the essential type information is captured.
54
- * - `normal` - Additional type information is captured, including some contextual data.
55
- * - `verbose` - All available type information is captured, including detailed contextual data.
56
- */
57
- reflectionLevel?: ReflectionLevel;
58
- /**
59
- * Instructs the TypeScript compiler how to compile `.ts` files.
60
- */
61
- compilerOptions?: TSCompilerOptions;
62
- }
63
- type ParsedTypeScriptConfig = ts.ParsedCommandLine & {
64
- originalTsconfigJson: TsConfigJson;
65
- tsconfigJson: TSConfig;
66
- tsconfigFilePath: string;
67
- };
68
- //#endregion
69
- export { DeepkitOptions, ParsedTypeScriptConfig, RawReflectionMode, ReflectionLevel, ReflectionMode, TSCompilerOptions, TSConfig };
70
- //# sourceMappingURL=tsconfig.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tsconfig.d.mts","names":[],"sources":["../../../../../core/src/types/tsconfig.ts"],"sourcesContent":[],"mappings":";;;;KAqBY,cAAA;KACA,iBAAA,GACR;AAFJ;AACA;AAiBA;AAEA;AAoBA;AAOA;;;;AAsBoB,KAnDR,eAAA,GAmDQ,SAAA,GAAA,QAAA,GAAA,SAAA;AAtBc,UA3BjB,cAAA,CA2BiB;EAAI;AAyBtC;;;;EAEwB,UAAA,CAAA,EAhDT,iBAgDS;;;;;;;;;;oBArCJ;;KAGR,iBAAA,GAAoB,kBAAkB;;;;;;UAOjC,QAAA,SAAiB,KAAK;;;;;;eAMxB;;;;;;;;;;oBAWK;;;;oBAKA;;KAGR,sBAAA,GAAyB,EAAA,CAAG;wBAChB;gBACR"}
@@ -1,24 +0,0 @@
1
- import { PluginHook } from "./plugin.cjs";
2
- import { Context } from "./context.cjs";
3
- import { API } from "./api.cjs";
4
- import { MaybePromise } from "@stryke/types/base";
5
- import { HookFilter, UnpluginOptions } from "unplugin";
6
-
7
- //#region ../core/src/types/unplugin.d.ts
8
- type UnpluginBuilderVariant = "rollup" | "webpack" | "rspack" | "vite" | "esbuild" | "farm" | "unloader" | "rolldown" | "bun";
9
- type BuilderVariant = UnpluginBuilderVariant | "tsup" | "tsdown" | "unbuild";
10
- type InferUnpluginVariant<TBuildVariant extends BuilderVariant> = TBuildVariant extends "tsup" ? "esbuild" : TBuildVariant extends "tsdown" ? "rolldown" : TBuildVariant extends "unbuild" ? "rollup" : TBuildVariant;
11
- interface UnpluginOptions$1<TContext extends Context = Context> extends UnpluginOptions {
12
- /**
13
- * An API object that can be used for inter-plugin communication.
14
- *
15
- * @see https://rollupjs.org/plugin-development/#direct-plugin-communication
16
- */
17
- api: API<TContext["config"]>;
18
- }
19
- type InferUnpluginOptions<TContext extends Context = Context, TBuilderVariant extends BuilderVariant = BuilderVariant, TUnpluginVariant extends InferUnpluginVariant<TBuilderVariant> = InferUnpluginVariant<TBuilderVariant>> = { [TKey in keyof Required<UnpluginOptions$1<TContext>>[TUnpluginVariant]]?: Required<UnpluginOptions$1<TContext>>[TUnpluginVariant][TKey] extends infer THandler | {
20
- handler: infer THandler;
21
- } ? THandler extends ((this: infer TOriginalContext, ...args: infer TArgs) => infer TReturn) ? PluginHook<(this: TOriginalContext & TContext, ...args: TArgs) => MaybePromise<TReturn>, keyof HookFilter> : Required<UnpluginOptions$1<TContext>>[TUnpluginVariant][TKey] : Required<UnpluginOptions$1<TContext>>[TUnpluginVariant][TKey] };
22
- //#endregion
23
- export { BuilderVariant, InferUnpluginOptions, UnpluginBuilderVariant };
24
- //# sourceMappingURL=unplugin.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"unplugin.d.cts","names":[],"sources":["../../../../../core/src/types/unplugin.ts"],"sourcesContent":[],"mappings":";;;;;;;KA6BY,sBAAA;AAuBA,KAAA,cAAA,GACR,sBAAA,GAAA,MAAsB,GAAA,QAAA,GAAA,SAAA;AAY6B,KAA3C,oBAA2C,CAAA,sBAAA,cAAA,CAAA,GACrD,aADqD,SAAA,MAAA,GAAA,SAAA,GAGjD,aAHiD,SAAA,QAAA,GAAA,UAAA,GAK/C,aAL+C,SAAA,SAAA,GAAA,QAAA,GAO7C,aAP6C;AACrD,UAQe,iBARf,CAAA,iBASiB,OATjB,GAS2B,OAT3B,CAAA,SAUQ,eAVR,CAAA;EAEI;;;;AAMN;EACmB,GAAA,EAOZ,GAPY,CAOR,QAPQ,CAAA,QAAA,CAAA,CAAA;;AAOR,KAGC,oBAHD,CAAA,iBAIQ,OAJR,GAIkB,OAJlB,EAAA,wBAKe,cALf,GAKgC,cALhC,EAAA,yBAMgB,oBANhB,CAMqC,eANrC,CAAA,GAOP,oBAPO,CAOc,eAPd,CAAA,CAAA,GAAA,WAAJ,MASU,QATV,CAUH,iBAVG,CAUa,QAVb,CAAA,CAAA,CAWH,gBAXG,CAAA,IAWkB,QAXlB,CAYH,iBAZG,CAYa,QAZb,CAAA,CAAA,CAaH,gBAbG,CAAA,CAae,IAbf,CAAA,SAAA,KAAA,SAAA,GAAA;EANG,OAAA,EAAA,KAAA,SAAA;AAAmB,CAAA,GAAA,QAAA,UAAA,CAAA,IAAA,EAAA,KAAA,iBAAA,EAAA,GAAA,IAAA,EAAA,KAAA,MAAA,EAAA,GAAA,KAAA,QAAA,IA4BrB,UA5BqB,CAAA,CAAA,IAAA,EA8BX,gBA9BW,GA8BQ,QA9BR,EAAA,GAAA,IAAA,EA+BR,KA/BQ,EAAA,GAgCd,YAhCc,CAgCD,OAhCC,CAAA,EAAA,MAiCb,UAjCa,CAAA,GAmCrB,QAnCqB,CAmCZ,iBAnCY,CAmCI,QAnCJ,CAAA,CAAA,CAmCe,gBAnCf,CAAA,CAmCiC,IAnCjC,CAAA,GAoCvB,QApCuB,CAoCd,iBApCc,CAoCE,QApCF,CAAA,CAAA,CAoCa,gBApCb,CAAA,CAoC+B,IApC/B,CAAA,EAS7B"}
@@ -1,25 +0,0 @@
1
- import { PluginHook } from "./plugin.mjs";
2
- import { Context } from "./context.mjs";
3
- import "./config.mjs";
4
- import { API } from "./api.mjs";
5
- import { MaybePromise } from "@stryke/types/base";
6
- import { HookFilter, UnpluginOptions } from "unplugin";
7
-
8
- //#region ../core/src/types/unplugin.d.ts
9
- type UnpluginBuilderVariant = "rollup" | "webpack" | "rspack" | "vite" | "esbuild" | "farm" | "unloader" | "rolldown" | "bun";
10
- type BuilderVariant = UnpluginBuilderVariant | "tsup" | "tsdown" | "unbuild";
11
- type InferUnpluginVariant<TBuildVariant extends BuilderVariant> = TBuildVariant extends "tsup" ? "esbuild" : TBuildVariant extends "tsdown" ? "rolldown" : TBuildVariant extends "unbuild" ? "rollup" : TBuildVariant;
12
- interface UnpluginOptions$1<TContext extends Context = Context> extends UnpluginOptions {
13
- /**
14
- * An API object that can be used for inter-plugin communication.
15
- *
16
- * @see https://rollupjs.org/plugin-development/#direct-plugin-communication
17
- */
18
- api: API<TContext["config"]>;
19
- }
20
- type InferUnpluginOptions<TContext extends Context = Context, TBuilderVariant extends BuilderVariant = BuilderVariant, TUnpluginVariant extends InferUnpluginVariant<TBuilderVariant> = InferUnpluginVariant<TBuilderVariant>> = { [TKey in keyof Required<UnpluginOptions$1<TContext>>[TUnpluginVariant]]?: Required<UnpluginOptions$1<TContext>>[TUnpluginVariant][TKey] extends infer THandler | {
21
- handler: infer THandler;
22
- } ? THandler extends ((this: infer TOriginalContext, ...args: infer TArgs) => infer TReturn) ? PluginHook<(this: TOriginalContext & TContext, ...args: TArgs) => MaybePromise<TReturn>, keyof HookFilter> : Required<UnpluginOptions$1<TContext>>[TUnpluginVariant][TKey] : Required<UnpluginOptions$1<TContext>>[TUnpluginVariant][TKey] };
23
- //#endregion
24
- export { BuilderVariant, InferUnpluginOptions, InferUnpluginVariant, UnpluginBuilderVariant, UnpluginOptions$1 as UnpluginOptions };
25
- //# sourceMappingURL=unplugin.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"unplugin.d.mts","names":[],"sources":["../../../../../core/src/types/unplugin.ts"],"sourcesContent":[],"mappings":";;;;;;;;KA6BY,sBAAA;AAAA,KAuBA,cAAA,GACR,sBAxB8B,GAAA,MAAA,GAAA,QAAA,GAAA,SAAA;AAoCtB,KAAA,oBAAoB,CAAA,sBAAuB,cAAvB,CAAA,GAC9B,aAD8B,SAAA,MAAA,GAAA,SAAA,GAG1B,aAH0B,SAAA,QAAA,GAAA,UAAA,GAKxB,aALwB,SAAA,SAAA,GAAA,QAAA,GAOtB,aAPsB;AAAuB,UAStC,iBATsC,CAAA,iBAUpC,OAVoC,GAU1B,OAV0B,CAAA,SAW7C,eAX6C,CAAA;EACrD;;;;;EAQe,GAAA,EAQV,GARU,CAQN,QARM,CAAA,QAAe,CAAA,CAAA;;AACH,KAUjB,oBAViB,CAAA,iBAWV,OAXU,GAWA,OAXA,EAAA,wBAYH,cAZG,GAYc,cAZd,EAAA,yBAaF,oBAbE,CAamB,eAbnB,CAAA,GAczB,oBAdyB,CAcJ,eAdI,CAAA,CAAA,GAAA,WAOlB,MASM,QATN,CAUP,iBAVO,CAUS,QAVT,CAAA,CAAA,CAWP,gBAXO,CAAA,IAWc,QAXd,CAYP,iBAZO,CAYS,QAZT,CAAA,CAAA,CAaP,gBAbO,CAAA,CAaW,IAbX,CAAA,SAAA,KAAA,SAAA,GAAA;EAAJ,OAAA,EAAA,KAAA,SAAA;AANG,CAAA,GAAA,QAAA,UAAA,CAAA,IAAA,EAAA,KAAA,iBAAA,EAAA,GAAA,IAAA,EAAA,KAAA,MAAA,EAAA,GAAA,KAAA,QAAA,IA4BF,UA5BE,CAAA,CAAA,IAAA,EA8BQ,gBA9BR,GA8B2B,QA9B3B,EAAA,GAAA,IAAA,EA+BW,KA/BX,EAAA,GAgCK,YAhCL,CAgCkB,OAhClB,CAAA,EAAA,MAiCM,UAjCN,CAAA,GAmCF,QAnCE,CAmCO,iBAnCP,CAmCuB,QAnCvB,CAAA,CAAA,CAmCkC,gBAnClC,CAAA,CAmCoD,IAnCpD,CAAA,GAoCJ,QApCI,CAoCK,iBApCL,CAoCqB,QApCrB,CAAA,CAAA,CAoCgC,gBApChC,CAAA,CAoCkD,IApClD,CAAA,EAAmB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ast-utils.d.cts","names":[],"sources":["../../src/helpers/ast-utils.ts"],"sourcesContent":[],"mappings":";;;;;;;;AA+BA;;;;;AAkBY,iBAlBI,QAAA,CAkBkB,IAAA,EAAA,MAAA,EAAA,IAAA,CAAA,EAhB1B,aAgB0B,CAAA,EAf/B,WAe+B,CAfnB,CAAA,CAAE,IAeiB,CAAA;AAAG,KAAzB,sBAAA,GAAyB,gBAAA,GACnC,QADmC,CAC1B,IAD0B,CACrB,gBADqB,EAAA,gBAAA,GAAA,UAAA,CAAA,CAAA;AACrB,iBAEA,eAAA,CAFA,GAAA,EAGT,CAAA,CAAE,IAHO,EAAA,IAAA,CAAA,EAIP,sBAJO,CAAA,EAKb,iBALa;AAAd,yCAAA,GAAA,EAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ast-utils.d.mts","names":[],"sources":["../../src/helpers/ast-utils.ts"],"sourcesContent":[],"mappings":";;;;;;;;AA+BA;;;;;AAkBY,iBAlBI,QAAA,CAkBkB,IAAA,EAAA,MAAA,EAAA,IAAA,CAAA,EAhB1B,aAgB0B,CAAA,EAf/B,WAe+B,CAfnB,CAAA,CAAE,IAeiB,CAAA;AAAG,KAAzB,sBAAA,GAAyB,gBAAA,GACnC,QADmC,CAC1B,IAD0B,CACrB,gBADqB,EAAA,gBAAA,GAAA,UAAA,CAAA,CAAA;AACrB,iBAEA,eAAA,CAFA,GAAA,EAGT,CAAA,CAAE,IAHO,EAAA,IAAA,CAAA,EAIP,sBAJO,CAAA,EAKb,iBALa;AAAd,yCAAA,GAAA,EAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ast-utils.mjs","names":[],"sources":["../../src/helpers/ast-utils.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { GeneratorOptions, GeneratorResult } from \"@babel/generator\";\nimport _generate from \"@babel/generator\";\nimport type { ParseResult, ParserOptions } from \"@babel/parser\";\nimport { parse } from \"@babel/parser\";\nimport type * as t from \"@babel/types\";\n\n/**\n * Parse the given code into an AST.\n *\n * @param code - The code to parse.\n * @param opts - The options for parsing.\n * @returns The parsed AST.\n */\nexport function parseAst(\n code: string,\n opts: ParserOptions = {}\n): ParseResult<t.File> {\n return parse(code, {\n plugins: [\"typescript\"],\n sourceType: \"module\",\n allowImportExportEverywhere: true,\n allowAwaitOutsideFunction: true,\n ...opts\n });\n}\n\nlet generate = _generate;\nif (\"default\" in generate) {\n generate = generate.default as typeof generate;\n}\n\nexport type GenerateFromAstOptions = GeneratorOptions &\n Required<Pick<GeneratorOptions, \"sourceFileName\" | \"filename\">>;\n\nexport function generateFromAst(\n ast: t.Node,\n opts?: GenerateFromAstOptions\n): GeneratorResult {\n return generate(\n ast,\n opts\n ? { importAttributesKeyword: \"with\", sourceMaps: true, ...opts }\n : undefined\n );\n}\n\nexport type { GeneratorResult } from \"@babel/generator\";\n"],"mappings":";;;;;;;;;;;AA+BA,SAAgB,SACd,MACA,OAAsB,EAAE,EACH;AACrB,QAAO,MAAM,MAAM;EACjB,SAAS,CAAC,aAAa;EACvB,YAAY;EACZ,6BAA6B;EAC7B,2BAA2B;EAC3B,GAAG;EACJ,CAAC;;AAGJ,IAAI,WAAW;AACf,IAAI,aAAa,SACf,YAAW,SAAS;AAMtB,SAAgB,gBACd,KACA,MACiB;AACjB,QAAO,SACL,KACA,OACI;EAAE,yBAAyB;EAAQ,YAAY;EAAM,GAAG;EAAM,GAC9D,OACL"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-plugin.d.cts","names":[],"sources":["../../src/helpers/create-plugin.ts"],"sourcesContent":[],"mappings":";;;;;;;AAmCA;;;;;AAKuC,iBALvB,iBAKuB,CAAA,iBAJpB,OAIoB,GAJV,OAIU,EAAA,iBAHpB,MAGoB,CAAA,MAAA,EAAA,GAAA,CAAA,GAHE,MAGF,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,CAAA,IAAA,EAAA,MAAA,EAAA,OAAA,EAA5B,2BAA4B,CAAA,QAAA,EAAU,QAAV,CAAA,CAAA,EACpC,iCADoC,CACF,QADE,EACQ,QADR,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-plugin.d.mts","names":[],"sources":["../../src/helpers/create-plugin.ts"],"sourcesContent":[],"mappings":";;;;;;;;;AAmCA;;;;AAEyC,iBAFzB,iBAEyB,CAAA,iBADtB,OACsB,GADZ,OACY,EAAA,iBAAtB,MAAsB,CAAA,MAAA,EAAA,GAAA,CAAA,GAAA,MAAA,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,CAAA,IAAA,EAAA,MAAA,EAAA,OAAA,EAG9B,2BAH8B,CAGF,QAHE,EAGQ,QAHR,CAAA,CAAA,EAItC,iCAJsC,CAIJ,QAJI,EAIM,QAJN,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-plugin.mjs","names":[],"sources":["../../src/helpers/create-plugin.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { declare } from \"@babel/helper-plugin-utils\";\nimport { extendLog } from \"@powerlines/core/lib/logger\";\nimport { Context } from \"@powerlines/core/types\";\nimport { LogLevelLabel } from \"@storm-software/config-tools/types\";\nimport chalk from \"chalk\";\nimport {\n BabelTransformPluginBuilder,\n DeclareBabelTransformPluginReturn\n} from \"../types/config\";\n\n/**\n * Create a Babel plugin using the provided builder function.\n *\n * @param name - The name of the plugin.\n * @param builder - The builder function that defines the plugin behavior.\n * @returns A Babel plugin declaration.\n */\nexport function createBabelPlugin<\n TContext extends Context = Context,\n TOptions extends Record<string, any> = Record<string, any>\n>(\n name: string,\n builder: BabelTransformPluginBuilder<TContext, TOptions>\n): DeclareBabelTransformPluginReturn<TContext, TOptions> {\n const plugin = (context: TContext) => {\n return declare<TOptions>((api, options, dirname) => {\n api.cache.using(() => context.meta.checksum);\n api.assertVersion(\"^7.0.0-0\");\n\n const log = extendLog(context.log, name);\n log(\n LogLevelLabel.TRACE,\n `Initializing the ${chalk.bold.cyanBright(name)} Babel plugin`\n );\n\n const result = builder({\n log,\n name,\n api,\n options,\n context,\n dirname\n });\n result.name = name;\n\n log(\n LogLevelLabel.TRACE,\n `Completed initialization of the ${chalk.bold.cyanBright(name)} Babel plugin`\n );\n\n return result;\n });\n };\n plugin.$$name = name;\n\n return plugin;\n}\n"],"mappings":";;;;;;;;;;;;;AAmCA,SAAgB,kBAId,MACA,SACuD;CACvD,MAAM,UAAU,YAAsB;AACpC,SAAO,SAAmB,KAAK,SAAS,YAAY;AAClD,OAAI,MAAM,YAAY,QAAQ,KAAK,SAAS;AAC5C,OAAI,cAAc,WAAW;GAE7B,MAAM,MAAM,UAAU,QAAQ,KAAK,KAAK;AACxC,OACE,cAAc,OACd,oBAAoB,MAAM,KAAK,WAAW,KAAK,CAAC,eACjD;GAED,MAAM,SAAS,QAAQ;IACrB;IACA;IACA;IACA;IACA;IACA;IACD,CAAC;AACF,UAAO,OAAO;AAEd,OACE,cAAc,OACd,mCAAmC,MAAM,KAAK,WAAW,KAAK,CAAC,eAChE;AAED,UAAO;IACP;;AAEJ,QAAO,SAAS;AAEhB,QAAO"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"filters.d.cts","names":[],"sources":["../../src/helpers/filters.ts"],"sourcesContent":[],"mappings":";;;;iBA6BgB,aAAA,UAEV;;AAFN;AA2BA;AAqBA;;;;AAGG,iBAxBa,iBAAA,CAwBb,OAAA,EAAA,CAvBS,mCAuBT,GAAA,SAAA,CAAA,EAAA,EAAA,MAAA,EAtBO,2BAsBP,CAAA,EAAA,OAAA;;AAoBH;;;;;;AAegB,iBAtCA,oBAsCe,CAAA,iBAtCuB,OAsCvB,GAtCiC,OAsCjC,CAAA,CAAA,OAAA,EArCpB,QAqCoB,EAAA,MAAA,EAAA,MAAA,CAAA,EAnC5B,0BAmC4B;;;;;;;;;;iBAff,eAAA,UACL,kBACA,uCACD,8DAEP;;;;;;;;;iBAUa,eAAA,UACL,iBACD,uBAAuB,qCACvB,YAAY,8BACnB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"filters.d.mts","names":[],"sources":["../../src/helpers/filters.ts"],"sourcesContent":[],"mappings":";;;;;iBA6BgB,aAAA,UAEV;;;AAFN;AA2BA;AAqBA;;;AACW,iBAtBK,iBAAA,CAsBL,OAAA,EAAA,CArBC,mCAqBD,GAAA,SAAA,CAAA,EAAA,EAAA,MAAA,EApBD,2BAoBC,CAAA,EAAA,OAAA;;;AAsBX;;;;;AAK8B,iBA5Bd,oBA4Bc,CAAA,iBA5BwB,OA4BxB,GA5BkC,OA4BlC,CAAA,CAAA,OAAA,EA3BnB,QA2BmB,EAAA,MAAA,EAAA,MAAA,CAAA,EAzB3B,0BAyB2B;AAU9B;;;;;;;;;iBAfgB,eAAA,UACL,kBACA,uCACD,8DAEP;;;;;;;;;iBAUa,eAAA,UACL,iBACD,uBAAuB,qCACvB,YAAY,8BACnB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"filters.mjs","names":[],"sources":["../../src/helpers/filters.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { Context } from \"@powerlines/core/types\";\nimport { isFunction } from \"@stryke/type-checks/is-function\";\nimport { isObject } from \"@stryke/type-checks/is-object\";\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport {\n BabelTransformPlugin,\n BabelTransformPluginFilter,\n BabelTransformPluginOptions,\n ResolvedBabelTransformPluginOptions\n} from \"../types/config\";\n\nexport function getPluginName(\n plugin?:\n | BabelTransformPluginOptions\n | string\n | false\n | object\n | ((...args: any[]) => any)\n | undefined\n): string | undefined {\n return isSetString(plugin)\n ? plugin\n : Array.isArray(plugin) && plugin.length > 0\n ? getPluginName(plugin[0])\n : (plugin as BabelTransformPlugin).$$name ||\n (plugin as BabelTransformPlugin).name\n ? (plugin as BabelTransformPlugin).$$name ||\n (plugin as BabelTransformPlugin).name\n : undefined;\n}\n\n/**\n * Check if a Babel plugin is a duplicate of another plugin in the list.\n *\n * @param plugins - The list of existing Babel plugins.\n * @param plugin - The Babel plugin to check for duplicates.\n * @returns True if the plugin is a duplicate, false otherwise.\n */\nexport function isDuplicatePlugin(\n plugins: (ResolvedBabelTransformPluginOptions | undefined)[],\n plugin: BabelTransformPluginOptions\n): boolean {\n return !!(\n getPluginName(plugin) &&\n plugins.some(\n existing =>\n Array.isArray(existing) &&\n getPluginName(existing[0]) === getPluginName(plugin)\n )\n );\n}\n\n/**\n * Filters a Babel plugin by its runtime ID.\n *\n * @param context - The context in which the filter is applied.\n * @param fileId - The file ID to filter by.\n * @returns A filter function that checks if a plugin's ID matches the runtime ID.\n */\nexport function filterPluginByFileId<TContext extends Context = Context>(\n context: TContext,\n fileId: string\n): BabelTransformPluginFilter {\n return (code: string, id: string): boolean =>\n fileId !== id &&\n context.fs.ids[fileId] !== id &&\n fileId !== context.fs.ids[id] &&\n context.fs.ids[fileId] !== context.fs.ids[id] &&\n context.fs.paths[fileId] !== id &&\n fileId !== context.fs.paths[id] &&\n context.fs.paths[fileId] !== context.fs.paths[id];\n}\n\n/**\n * Adds a filter to a Babel plugin or a list of Babel plugins.\n *\n * @param context - The context in which the plugin is being added.\n * @param plugins - The Babel plugins to add the filter to.\n * @param filter - The filter function to apply to the plugins.\n * @param name - The name of the plugin to add the filter to.\n * @returns The updated list of Babel plugins with the filter applied.\n */\nexport function addPluginFilter(\n context: Context,\n plugins: BabelTransformPluginOptions[],\n filter: BabelTransformPluginFilter | null | undefined,\n name: string\n): BabelTransformPluginOptions[];\n\n/**\n * Adds a filter to a Babel plugin or a list of Babel plugins.\n *\n * @param context - The context in which the plugin is being added.\n * @param plugin - The Babel plugin to add the filter to.\n * @param filter - The filter function to apply to the plugin.\n * @returns The updated Babel plugin with the filter applied.\n */\nexport function addPluginFilter(\n context: Context,\n plugin: BabelTransformPlugin | BabelTransformPluginOptions,\n filter: NonNullable<BabelTransformPluginFilter>\n): BabelTransformPluginOptions;\n\n/**\n * Adds a filter to a Babel plugin or a list of Babel plugins.\n *\n * @param context - The context in which the plugin is being added.\n * @param pluginOrPlugins - The Babel plugin or plugins to add the filter to.\n * @param filter - The filter function to apply to the plugins.\n * @param name - The name of the plugin to add the filter to.\n * @returns The updated list of Babel plugins with the filter applied.\n */\nexport function addPluginFilter<\n T extends\n | BabelTransformPlugin\n | BabelTransformPluginOptions\n | BabelTransformPluginOptions[]\n>(\n context: Context,\n pluginOrPlugins: T,\n filter: NonNullable<BabelTransformPluginFilter>,\n name?: string\n): T extends BabelTransformPluginOptions[]\n ? BabelTransformPluginOptions[]\n : BabelTransformPluginOptions {\n if (\n !Array.isArray(pluginOrPlugins) ||\n (!pluginOrPlugins.some(plugin => Array.isArray(plugin)) &&\n pluginOrPlugins.length < 4 &&\n pluginOrPlugins.length > 0 &&\n (isSetString(pluginOrPlugins[0]) ||\n isFunction(pluginOrPlugins[0]) ||\n (pluginOrPlugins.length > 1 && isObject(pluginOrPlugins[1])) ||\n (pluginOrPlugins.length > 2 && isObject(pluginOrPlugins[2]))))\n ) {\n return Array.isArray(pluginOrPlugins)\n ? [\n pluginOrPlugins[0],\n pluginOrPlugins.length > 1 ? pluginOrPlugins[1] : {},\n {\n filter: (code, id) =>\n filter(code, id) &&\n (pluginOrPlugins.length < 2 ||\n !isFunction(pluginOrPlugins[2]) ||\n pluginOrPlugins[2]?.(code, id))\n }\n ]\n : [\n pluginOrPlugins,\n {},\n {\n filter\n }\n ];\n }\n\n if (!name) {\n throw new Error(\n \"No name was provided to \\`addPluginFilter\\`, could not find babel plugin without it.\"\n );\n }\n\n const foundIndex = pluginOrPlugins.findIndex(\n plugin => getPluginName(plugin)?.toLowerCase() === name.toLowerCase()\n );\n if (foundIndex > -1) {\n pluginOrPlugins[foundIndex] = addPluginFilter(\n context,\n pluginOrPlugins[foundIndex],\n filter,\n name\n );\n }\n\n return pluginOrPlugins;\n}\n"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AAM,GAAG,GACnC;EACF,GACD;EACE;EACA,EAAE;EACF,EACE,QACD;EACF;AAGP,KAAI,CAAC,KACH,OAAM,IAAI,MACR,qFACD;CAGH,MAAM,aAAa,gBAAgB,WACjC,WAAU,cAAc,OAAO,EAAE,aAAa,KAAK,KAAK,aAAa,CACtE;AACD,KAAI,aAAa,GACf,iBAAgB,cAAc,gBAC5B,SACA,gBAAgB,aAChB,QACA,KACD;AAGH,QAAO"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"module-helpers.d.cts","names":[],"sources":["../../src/helpers/module-helpers.ts"],"sourcesContent":[],"mappings":";;;;;;;;;AAgCA;AA6BA;AA4BA;;;AAAyD,iBAzDzC,UAAA,CAyDyC,GAAA,EAzDzB,WAyDyB,CAzDb,CAAA,CAAE,IAyDW,CAAA,EAAA,GAAA,EAAA,MAAA,CAAA,EAAA,GAAA;;AAsBzD;;;;;AAcgB,iBAhEA,WAAA,CAoEX,SAAA,EApEkC,WAoEjB,CApE6B,CAAA,CAAE,IAoE/B,CAAA,GAAA,MAAA,CAAA,EAAA,MAAA,EAAA;AAatB;AAuCA;;;;;iBA5FgB,WAAA,MAAiB,YAAY,CAAA,CAAE,QAAQ,CAAA,CAAE;iBAsBzC,YAAA,aACF,SAAS,CAAA,CAAE,iBAAiB,CAAA,CAAE;;;;;;;;;iBAa5B,SAAA,mDAIb,CAAA,CAAE;;;;;;;iBAaW,SAAA,OAAgB,0BAA0B;iBAuC1C,mBAAA,OACR,SAAS,CAAA,CAAE,qBACN"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"module-helpers.d.mts","names":[],"sources":["../../src/helpers/module-helpers.ts"],"sourcesContent":[],"mappings":";;;;;;;;;AAgCA;AA6BA;AA4BA;;;AAAyD,iBAzDzC,UAAA,CAyDyC,GAAA,EAzDzB,WAyDyB,CAzDb,CAAA,CAAE,IAyDW,CAAA,EAAA,GAAA,EAAA,MAAA,CAAA,EAAA,GAAA;;AAsBzD;;;;;AAcgB,iBAhEA,WAAA,CAoEX,SAAA,EApEkC,WAoEjB,CApE6B,CAAA,CAAE,IAoE/B,CAAA,GAAA,MAAA,CAAA,EAAA,MAAA,EAAA;AAatB;AAuCA;;;;;iBA5FgB,WAAA,MAAiB,YAAY,CAAA,CAAE,QAAQ,CAAA,CAAE;iBAsBzC,YAAA,aACF,SAAS,CAAA,CAAE,iBAAiB,CAAA,CAAE;;;;;;;;;iBAa5B,SAAA,mDAIb,CAAA,CAAE;;;;;;;iBAaW,SAAA,OAAgB,0BAA0B;iBAuC1C,mBAAA,OACR,SAAS,CAAA,CAAE,qBACN"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"module-helpers.mjs","names":[],"sources":["../../src/helpers/module-helpers.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { NodePath } from \"@babel/core\";\nimport { ParseResult } from \"@babel/parser\";\nimport * as t from \"@babel/types\";\nimport { isString } from \"@stryke/type-checks/is-string\";\nimport { ImportSpecifier } from \"../types/config\";\nimport { parseAst } from \"./ast-utils\";\n\n/**\n * Finds an export in the given Babel AST program by its key.\n *\n * @param ast - The parsed Babel AST result containing the program body.\n * @param key - The name of the export to find (e.g., \"default\" or a named export).\n * @returns The declaration of the export if found, otherwise undefined.\n */\nexport function findExport(ast: ParseResult<t.File>, key: string) {\n const type =\n key === \"default\" ? \"ExportDefaultDeclaration\" : \"ExportNamedDeclaration\";\n\n for (const node of ast.program.body) {\n if (node.type === type) {\n if (key === \"default\") {\n return node.declaration;\n }\n if (node.declaration && \"declarations\" in node.declaration) {\n const declaration = node.declaration.declarations[0];\n if (\n declaration &&\n \"name\" in declaration.id &&\n declaration.id.name === key\n ) {\n return declaration.init as any;\n }\n }\n }\n }\n}\n\n/**\n * Lists all exports from the given Babel AST program.\n *\n * @param codeOrAst - The parsed Babel AST result containing the program body.\n * @returns An array of export names, including \"default\" for default exports.\n */\nexport function listExports(codeOrAst: ParseResult<t.File> | string) {\n const ast = isString(codeOrAst) ? parseAst(codeOrAst) : codeOrAst;\n\n return ast.program.body\n .flatMap(i => {\n if (i.type === \"ExportDefaultDeclaration\") {\n return [\"default\"];\n }\n if (\n i.type === \"ExportNamedDeclaration\" &&\n i.declaration &&\n \"declarations\" in i.declaration\n ) {\n return i.declaration.declarations.map(d =>\n \"name\" in d.id ? d.id.name : \"\"\n );\n }\n return [];\n })\n .filter(Boolean);\n}\n\n/**\n * Lists all imports from the given Babel AST program.\n *\n * @param ast - The parsed Babel AST result containing the program body.\n * @returns An array of import names, including \"default\" for default imports.\n */\nexport function listImports(ast: ParseResult<t.File> | t.File) {\n return ast.program.body\n .flatMap(i => {\n if (i.type === \"ImportDeclaration\") {\n return i.specifiers.map(s => {\n if (s.type === \"ImportDefaultSpecifier\") {\n return \"default\";\n }\n if (s.type === \"ImportSpecifier\" && \"imported\" in s) {\n return s.imported.type === \"Identifier\"\n ? s.imported.name\n : s.imported.value;\n }\n return \"\";\n });\n }\n\n return [];\n })\n .filter(Boolean);\n}\n\nexport function isImportCall(\n calleePath: NodePath<t.CallExpression | t.NewExpression>\n) {\n return t.isImport(calleePath.node.callee);\n}\n\n/**\n * Gets the import declaration for a given name and specifier.\n *\n * @param specifier - The specifier of the import.\n * @param name - The name of the import.\n * @param named - Optional named import.\n * @returns The import declaration.\n */\nexport function getImport(\n specifier: string,\n name: string,\n named?: string\n): t.ImportDeclaration {\n return t.importDeclaration(\n [t.importSpecifier(t.identifier(name), t.stringLiteral(named || name))],\n t.stringLiteral(specifier)\n );\n}\n\n/**\n * Adds an import to the program if it doesn't already exist.\n *\n * @param path - The current NodePath in the AST.\n * @param specifier - The import specifier.\n */\nexport function addImport(path: NodePath<any>, specifier: ImportSpecifier) {\n addImportsToProgram(\n path.scope.getProgramParent().path as NodePath<t.Program>,\n specifier\n );\n}\n\n/*\n * Matches `import { ... } from <moduleName>;`\n * but not `import * as React from <moduleName>;`\n * `import type { Foo } from <moduleName>;`\n */\nfunction isNonNamespacedImport(\n importDeclPath: NodePath<t.ImportDeclaration>\n): boolean {\n return (\n importDeclPath\n .get(\"specifiers\")\n .filter(Boolean)\n .every(specifier => specifier?.isImportSpecifier()) &&\n importDeclPath.node.importKind !== \"type\" &&\n importDeclPath.node.importKind !== \"typeof\"\n );\n}\n\nfunction getExistingImports(\n program: NodePath<t.Program>\n): Map<string, NodePath<t.ImportDeclaration>> {\n const existingImports = new Map<string, NodePath<t.ImportDeclaration>>();\n program.traverse({\n ImportDeclaration(path) {\n if (isNonNamespacedImport(path)) {\n existingImports.set(path.node.source.value, path);\n }\n }\n });\n return existingImports;\n}\n\nexport function addImportsToProgram(\n path: NodePath<t.Program>,\n specifier: ImportSpecifier\n): void {\n const existingImports = getExistingImports(path);\n\n /**\n * If an existing import of this module exists (ie \\`import \\{ ... \\} from\n * '<moduleName>'\\`), inject new imported specifiers into the list of\n * destructured variables.\n */\n if (!existingImports.get(specifier.module)) {\n path.unshiftContainer(\n \"body\",\n t.importDeclaration(\n [\n t.importSpecifier(\n t.identifier(specifier.name || specifier.imported),\n t.identifier(specifier.imported)\n )\n ],\n t.stringLiteral(specifier.module)\n )\n );\n }\n}\n"],"mappings":";;;;;;;;;;;;AAgCA,SAAgB,WAAW,KAA0B,KAAa;CAChE,MAAM,OACJ,QAAQ,YAAY,6BAA6B;AAEnD,MAAK,MAAM,QAAQ,IAAI,QAAQ,KAC7B,KAAI,KAAK,SAAS,MAAM;AACtB,MAAI,QAAQ,UACV,QAAO,KAAK;AAEd,MAAI,KAAK,eAAe,kBAAkB,KAAK,aAAa;GAC1D,MAAM,cAAc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rD,eAAe,KAAK,eAAe,UACnC,eAAe,KAAK,eAAe;;AAIvC,SAAS,mBACP,SAC4C;CAC5C,MAAM,kCAAkB,IAAI,KAA4C;AACxE,SAAQ,SAAS,EACf,kBAAkB,MAAM;AACtB,MAAI,sBAAsB,KAAK,CAC7B,iBAAgB,IAAI,KAAK,KAAK,OAAO,OAAO,KAAK;IAGtD,CAAC;AACF,QAAO;;AAGT,SAAgB,oBACd,MACA,WACM;;;;;;AAQN,KAAI,CAPoB,mBAAmB,KAAK,CAO3B,IAAI,UAAU,OAAO,CACxC,MAAK,iBACH,QACA,EAAE,kBACA,CACE,EAAE,gBACA,EAAE,WAAW,UAAU,QAAQ,UAAU,SAAS,EAClD,EAAE,WAAW,UAAU,SAAS,CACjC,CACF,EACD,EAAE,cAAc,UAAU,OAAO,CAClC,CACF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"options.d.cts","names":[],"sources":["../../src/helpers/options.ts"],"sourcesContent":[],"mappings":";;;;;iBA4BgB,qBAAA,UACL,uBAGL,wBAEC,cAAc,kBACd,cAAc,qCAClB;;AARH;;;;;;;;AAQ8B,iBAuBd,kBAAA,CAvBc,OAAA,EAwBnB,OAxBmB,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,EAAA,MAAA,EAAA,MAAA,EA2BpB,2BA3BoB,CAAA,EA4B3B,mCA5B2B,GAAA,SAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"options.d.mts","names":[],"sources":["../../src/helpers/options.ts"],"sourcesContent":[],"mappings":";;;;;;iBA4BgB,qBAAA,UACL,uBAGL,wBAEC,cAAc,kBACd,cAAc,qCAClB;;;AARH;;;;;;;AAQG,iBAuBa,kBAAA,CAvBb,OAAA,EAwBQ,OAxBR,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,EAAA,MAAA,EAAA,MAAA,EA2BO,2BA3BP,CAAA,EA4BA,mCA5BA,GAAA,SAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"options.mjs","names":[],"sources":["../../src/helpers/options.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { PluginOptions, PluginTarget } from \"@babel/core\";\nimport { Context } from \"@powerlines/core/types\";\nimport { isFunction } from \"@stryke/type-checks/is-function\";\nimport chalk from \"chalk\";\nimport {\n BabelTransformPluginOptions,\n ResolvedBabelTransformPluginOptions\n} from \"../types/config\";\nimport { getPluginName } from \"./filters\";\n\nexport function resolvePluginFunction(\n context: Context,\n plugin:\n | any\n | PluginTarget\n | any[]\n | [PluginTarget, PluginOptions]\n | [PluginTarget, PluginOptions, string | undefined]\n): BabelTransformPluginOptions {\n try {\n return Array.isArray(plugin) && plugin.length > 0 && plugin[0]\n ? isFunction(plugin[0])\n ? plugin[0](context)\n : plugin[0]\n : isFunction(plugin)\n ? plugin(context)\n : plugin;\n } catch {\n return plugin[0];\n }\n}\n\n/**\n * Resolve the [Babel](https://babeljs.io/) plugin.\n *\n * @param context - The context for the transformation.\n * @param code - The code to be transformed.\n * @param id - The ID of the source file.\n * @param plugin - The Babel plugin to resolve.\n * @returns The resolved Babel plugin options, or undefined if the plugin is filtered out.\n */\nexport function resolveBabelPlugin(\n context: Context,\n code: string,\n id: string,\n plugin: BabelTransformPluginOptions\n): ResolvedBabelTransformPluginOptions | undefined {\n if (Array.isArray(plugin) && plugin.length > 0 && plugin[0]) {\n if (\n plugin.length > 2 &&\n plugin[2] &&\n isFunction(plugin[2]) &&\n !plugin[2](code, id)\n ) {\n context.trace(\n `Skipping filtered Babel plugin ${chalk.bold.cyanBright(\n getPluginName(plugin) || \"unnamed\"\n )} for ${id}`\n );\n\n return undefined;\n }\n\n return plugin.length > 2\n ? [resolvePluginFunction(context, plugin), plugin[1], plugin[2]]\n : [resolvePluginFunction(context, plugin), plugin[1], null];\n }\n\n return [resolvePluginFunction(context, plugin), {}, null];\n}\n"],"mappings":";;;;;AA4BA,SAAgB,sBACd,SACA,QAM6B;AAC7B,KAAI;AACF,SAAO,MAAM,QAAQ,OAAO,IAAI,OAAO,SAAS,KAAK,OAAO,KACxD,WAAW,OAAO,GAAG,GACnB,OAAO,GAAG,QAAQ,GAClB,OAAO,KACT,WAAW,OAAO,GAChB,OAAO,QAAQ,GACf;SACA;AACN,SAAO,OAAO;;;;;;;;;;;;AAalB,SAAgB,mBACd,SACA,MACA,IACA,QACiD;AACjD,KAAI,MAAM,QAAQ,OAAO,IAAI,OAAO,SAAS,KAAK,OAAO,IAAI;AAC3D,MACE,OAAO,SAAS,KAChB,OAAO,MACP,WAAW,OAAO,GAAG,IACrB,CAAC,OAAO,GAAG,MAAM,GAAG,EACpB;AACA,WAAQ,MACN,kCAAkC,MAAM,KAAK,WAC3C,cAAc,OAAO,IAAI,UAC1B,CAAC,OAAO,KACV;AAED;;AAGF,SAAO,OAAO,SAAS,IACnB;GAAC,sBAAsB,SAAS,OAAO;GAAE,OAAO;GAAI,OAAO;GAAG,GAC9D;GAAC,sBAAsB,SAAS,OAAO;GAAE,OAAO;GAAI;GAAK;;AAG/D,QAAO;EAAC,sBAAsB,SAAS,OAAO;EAAE,EAAE;EAAE;EAAK"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"config.d.cts","names":[],"sources":["../../src/types/config.ts"],"sourcesContent":[],"mappings":";;;;;;UA4BiB,qBAAA;;;EAAA,IAAA,EAAA,OAAA;AAMjB;AAKY,UALK,uBAAA,CAKc;EAEnB,MAAA,EAAA,MAAA;EAEA,IAAA,EAAA,SAAA;AAEZ;AACmB,KAPP,gBAAA,GAAmB,qBAOZ,GAPoC,uBA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in.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;KAyBY,kBAAA,GAAqB,QAAQ;KAE7B,qBAAA,GAAwB;UAC1B;AAHV,CAAA;AAEY,UAIK,yBAAA,SAAkC,cAHzC,CAAA;EAGO,KAAA,EACR,mBADQ;AAIjB;AAC0B,KADd,kBACc,CAAA,wBAAA,yBAAA,GAA4B,yBAA5B,CAAA,GACtB,aADsB,CACR,eADQ,CAAA;AAA4B,qCAAA,GAAA,EAAA;AACpC,wCAAA,GAAA,EAAA;AAAd,4CAAA,GAAA,EAAA;AAAa,qCAAA,GAAA,EAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;;KAyBY,kBAAA,GAAqB,QAAQ;KAE7B,qBAAA,GAAwB;UAC1B;;AAHE,UAMK,yBAAA,SAAkC,cANX,CAAA;EAE5B,KAAA,EAKH,mBALwB;AAIjC;AAIY,KAAA,kBAAkB,CAAA,wBACJ,yBADI,GACwB,yBADxB,CAAA,GAE1B,aAF0B,CAEZ,eAFY,CAAA;AACJ,qCAAA,GAAA,EAAA;AAA4B,wCAAA,GAAA,EAAA;AACpC,4CAAA,GAAA,EAAA;AAAd,qCAAA,GAAA,EAAA"}