@powerlines/plugin-babel 0.12.67 → 0.12.68

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 (97) hide show
  1. package/dist/{chunk-Bmb41Sf3.cjs → _virtual/rolldown_runtime.cjs} +1 -1
  2. package/dist/helpers/ast-utils.cjs +1 -1
  3. package/dist/helpers/ast-utils.d.cts +19 -2
  4. package/dist/helpers/ast-utils.d.mts +19 -2
  5. package/dist/helpers/ast-utils.mjs +1 -1
  6. package/dist/helpers/create-plugin.cjs +1 -1
  7. package/dist/helpers/create-plugin.d.cts +14 -2
  8. package/dist/helpers/create-plugin.d.mts +14 -2
  9. package/dist/helpers/create-plugin.mjs +1 -1
  10. package/dist/helpers/filters.cjs +1 -1
  11. package/dist/helpers/filters.d.cts +41 -2
  12. package/dist/helpers/filters.d.mts +42 -2
  13. package/dist/helpers/filters.mjs +1 -1
  14. package/dist/helpers/index.cjs +1 -1
  15. package/dist/helpers/index.d.cts +5 -7
  16. package/dist/helpers/index.d.mts +5 -7
  17. package/dist/helpers/index.mjs +1 -1
  18. package/dist/helpers/module-helpers.cjs +1 -1
  19. package/dist/helpers/module-helpers.d.cts +48 -2
  20. package/dist/helpers/module-helpers.d.mts +48 -2
  21. package/dist/helpers/module-helpers.mjs +1 -1
  22. package/dist/helpers/options.cjs +1 -1
  23. package/dist/helpers/options.d.cts +17 -2
  24. package/dist/helpers/options.d.mts +17 -2
  25. package/dist/helpers/options.mjs +1 -1
  26. package/dist/index.cjs +1 -1
  27. package/dist/index.d.cts +8 -9
  28. package/dist/index.d.mts +9 -9
  29. package/dist/index.mjs +1 -1
  30. package/dist/powerlines/src/internal/helpers/hooks.d.mts +5 -0
  31. package/dist/powerlines/src/lib/logger.cjs +1 -0
  32. package/dist/powerlines/src/lib/logger.mjs +1 -0
  33. package/dist/powerlines/src/types/api.d.mts +5 -0
  34. package/dist/powerlines/src/types/babel.d.cts +50 -0
  35. package/dist/powerlines/src/types/babel.d.mts +50 -0
  36. package/dist/powerlines/src/types/build.d.cts +139 -0
  37. package/dist/powerlines/src/types/build.d.mts +139 -0
  38. package/dist/powerlines/src/types/commands.d.cts +8 -0
  39. package/dist/powerlines/src/types/commands.d.mts +9 -0
  40. package/dist/powerlines/src/types/config.d.cts +356 -0
  41. package/dist/powerlines/src/types/config.d.mts +356 -0
  42. package/dist/powerlines/src/types/context.d.cts +347 -0
  43. package/dist/powerlines/src/types/context.d.mts +349 -0
  44. package/dist/powerlines/src/types/fs.d.cts +458 -0
  45. package/dist/powerlines/src/types/fs.d.mts +458 -0
  46. package/dist/powerlines/src/types/hooks.d.mts +2 -0
  47. package/dist/powerlines/src/types/index.d.mts +12 -0
  48. package/dist/powerlines/src/types/plugin.d.cts +232 -0
  49. package/dist/powerlines/src/types/plugin.d.mts +232 -0
  50. package/dist/powerlines/src/types/resolved.d.cts +82 -0
  51. package/dist/powerlines/src/types/resolved.d.mts +82 -0
  52. package/dist/powerlines/src/types/tsconfig.d.cts +69 -0
  53. package/dist/powerlines/src/types/tsconfig.d.mts +69 -0
  54. package/dist/powerlines/src/types/unplugin.d.mts +6 -0
  55. package/dist/types/index.cjs +0 -1
  56. package/dist/types/index.d.cts +1 -3
  57. package/dist/types/index.d.mts +1 -3
  58. package/dist/types/index.mjs +1 -1
  59. package/dist/types/plugin.cjs +0 -1
  60. package/dist/types/plugin.d.cts +18 -2
  61. package/dist/types/plugin.d.mts +18 -2
  62. package/dist/types/plugin.mjs +1 -1
  63. package/package.json +10 -10
  64. package/dist/ast-utils-BXgehtOj.cjs +0 -1
  65. package/dist/ast-utils-Bs6DBkKg.d.mts +0 -19
  66. package/dist/ast-utils-DeuXcuqs.d.cts +0 -19
  67. package/dist/ast-utils-QwV5Hp9M.mjs +0 -1
  68. package/dist/babel-ChnxDnEW.d.cts +0 -1692
  69. package/dist/babel-DTaio8BX.d.mts +0 -1692
  70. package/dist/create-plugin-BX_bUhNU.cjs +0 -1
  71. package/dist/create-plugin-CT3AmMST.d.cts +0 -14
  72. package/dist/create-plugin-CcyQJscB.d.mts +0 -14
  73. package/dist/create-plugin-pWE4rRW3.mjs +0 -1
  74. package/dist/filters-DJgM_YqO.cjs +0 -1
  75. package/dist/filters-DWUVYxNP.d.cts +0 -41
  76. package/dist/filters-Dy71Hudo.d.mts +0 -44
  77. package/dist/filters-H7GHqM8L.mjs +0 -1
  78. package/dist/helpers-Bx2yBrpn.cjs +0 -0
  79. package/dist/helpers-C23KLU23.mjs +0 -1
  80. package/dist/index-ClXLQ1fw.d.mts +0 -1
  81. package/dist/index-DeEmP3Jc.d.cts +0 -1
  82. package/dist/index-QbUkWSLh.d.mts +0 -1
  83. package/dist/index-zO0Ly4bS.d.cts +0 -1
  84. package/dist/module-helpers-BXxcpiSf.d.cts +0 -49
  85. package/dist/module-helpers-CBJeXQA-.cjs +0 -1
  86. package/dist/module-helpers-CFI-GsFM.mjs +0 -1
  87. package/dist/module-helpers-ptD32AP3.d.mts +0 -49
  88. package/dist/options-Bxa6CVME.d.cts +0 -17
  89. package/dist/options-WrgZrzO5.mjs +0 -1
  90. package/dist/options-d1d8EwPZ.cjs +0 -1
  91. package/dist/options-kquKKsDE.d.mts +0 -17
  92. package/dist/plugin-BSBH78mm.cjs +0 -0
  93. package/dist/plugin-Ckany8iM.d.cts +0 -17
  94. package/dist/plugin-CpXo1Y2H.d.mts +0 -17
  95. package/dist/plugin-CpyJWCZI.mjs +0 -1
  96. package/dist/types-CKPddlfS.cjs +0 -0
  97. package/dist/types-cM7ObqRe.mjs +0 -1
@@ -0,0 +1,69 @@
1
+ import { CompilerOptions, TsConfigJson } from "@stryke/types/tsconfig";
2
+ import ts from "typescript";
3
+
4
+ //#region ../powerlines/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 { ParsedTypeScriptConfig, TSConfig };
@@ -0,0 +1,69 @@
1
+ import { CompilerOptions, TsConfigJson } from "@stryke/types/tsconfig";
2
+ import ts from "typescript";
3
+
4
+ //#region ../powerlines/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 };
@@ -0,0 +1,6 @@
1
+ import "./resolved.mjs";
2
+ import "./plugin.mjs";
3
+ import "./context.mjs";
4
+ import "./config.mjs";
5
+ import "./api.mjs";
6
+ import { UnpluginOptions } from "unplugin";
@@ -1 +0,0 @@
1
- require(`../plugin-BSBH78mm.cjs`),require(`../types-CKPddlfS.cjs`);
@@ -1,4 +1,2 @@
1
- import "../babel-ChnxDnEW.cjs";
2
- import { a as __ΩBabelPluginContext, c as __ΩBabelPluginUserConfig, i as BabelPluginUserConfig, n as BabelPluginOptions, o as __ΩBabelPluginOptions, r as BabelPluginResolvedConfig, s as __ΩBabelPluginResolvedConfig, t as BabelPluginContext } from "../plugin-Ckany8iM.cjs";
3
- import "../index-zO0Ly4bS.cjs";
1
+ import { BabelPluginContext, BabelPluginOptions, BabelPluginResolvedConfig, BabelPluginUserConfig, __ΩBabelPluginContext, __ΩBabelPluginOptions, __ΩBabelPluginResolvedConfig, __ΩBabelPluginUserConfig } from "./plugin.cjs";
4
2
  export { BabelPluginContext, BabelPluginOptions, BabelPluginResolvedConfig, BabelPluginUserConfig, __ΩBabelPluginContext, __ΩBabelPluginOptions, __ΩBabelPluginResolvedConfig, __ΩBabelPluginUserConfig };
@@ -1,4 +1,2 @@
1
- import "../babel-DTaio8BX.mjs";
2
- import { a as __ΩBabelPluginContext, c as __ΩBabelPluginUserConfig, i as BabelPluginUserConfig, n as BabelPluginOptions, o as __ΩBabelPluginOptions, r as BabelPluginResolvedConfig, s as __ΩBabelPluginResolvedConfig, t as BabelPluginContext } from "../plugin-CpXo1Y2H.mjs";
3
- import "../index-QbUkWSLh.mjs";
1
+ import { BabelPluginContext, BabelPluginOptions, BabelPluginResolvedConfig, BabelPluginUserConfig, __ΩBabelPluginContext, __ΩBabelPluginOptions, __ΩBabelPluginResolvedConfig, __ΩBabelPluginUserConfig } from "./plugin.mjs";
4
2
  export { BabelPluginContext, BabelPluginOptions, BabelPluginResolvedConfig, BabelPluginUserConfig, __ΩBabelPluginContext, __ΩBabelPluginOptions, __ΩBabelPluginResolvedConfig, __ΩBabelPluginUserConfig };
@@ -1 +1 @@
1
- import"../plugin-CpyJWCZI.mjs";import"../types-cM7ObqRe.mjs";export{};
1
+ export{};
@@ -1 +0,0 @@
1
- require(`../plugin-BSBH78mm.cjs`);
@@ -1,3 +1,19 @@
1
- import "../babel-ChnxDnEW.cjs";
2
- import { a as __ΩBabelPluginContext, c as __ΩBabelPluginUserConfig, i as BabelPluginUserConfig, n as BabelPluginOptions, o as __ΩBabelPluginOptions, r as BabelPluginResolvedConfig, s as __ΩBabelPluginResolvedConfig, t as BabelPluginContext } from "../plugin-Ckany8iM.cjs";
1
+ import { BabelResolvedConfig, ResolvedConfig } from "../powerlines/src/types/resolved.cjs";
2
+ import { PluginContext } from "../powerlines/src/types/context.cjs";
3
+ import { BabelUserConfig, UserConfig } from "../powerlines/src/types/config.cjs";
4
+
5
+ //#region src/types/plugin.d.ts
6
+ type BabelPluginOptions = Partial<BabelUserConfig>;
7
+ type BabelPluginUserConfig = UserConfig;
8
+ interface BabelPluginResolvedConfig extends ResolvedConfig {
9
+ transform: {
10
+ babel: BabelResolvedConfig;
11
+ };
12
+ }
13
+ type BabelPluginContext<TResolvedConfig extends BabelPluginResolvedConfig = BabelPluginResolvedConfig> = PluginContext<TResolvedConfig>;
14
+ declare type __ΩBabelPluginOptions = any[];
15
+ declare type __ΩBabelPluginUserConfig = any[];
16
+ declare type __ΩBabelPluginResolvedConfig = any[];
17
+ declare type __ΩBabelPluginContext = any[];
18
+ //#endregion
3
19
  export { BabelPluginContext, BabelPluginOptions, BabelPluginResolvedConfig, BabelPluginUserConfig, __ΩBabelPluginContext, __ΩBabelPluginOptions, __ΩBabelPluginResolvedConfig, __ΩBabelPluginUserConfig };
@@ -1,3 +1,19 @@
1
- import "../babel-DTaio8BX.mjs";
2
- import { a as __ΩBabelPluginContext, c as __ΩBabelPluginUserConfig, i as BabelPluginUserConfig, n as BabelPluginOptions, o as __ΩBabelPluginOptions, r as BabelPluginResolvedConfig, s as __ΩBabelPluginResolvedConfig, t as BabelPluginContext } from "../plugin-CpXo1Y2H.mjs";
1
+ import { BabelResolvedConfig, ResolvedConfig } from "../powerlines/src/types/resolved.mjs";
2
+ import { PluginContext } from "../powerlines/src/types/context.mjs";
3
+ import { BabelUserConfig, UserConfig } from "../powerlines/src/types/config.mjs";
4
+
5
+ //#region src/types/plugin.d.ts
6
+ type BabelPluginOptions = Partial<BabelUserConfig>;
7
+ type BabelPluginUserConfig = UserConfig;
8
+ interface BabelPluginResolvedConfig extends ResolvedConfig {
9
+ transform: {
10
+ babel: BabelResolvedConfig;
11
+ };
12
+ }
13
+ type BabelPluginContext<TResolvedConfig extends BabelPluginResolvedConfig = BabelPluginResolvedConfig> = PluginContext<TResolvedConfig>;
14
+ declare type __ΩBabelPluginOptions = any[];
15
+ declare type __ΩBabelPluginUserConfig = any[];
16
+ declare type __ΩBabelPluginResolvedConfig = any[];
17
+ declare type __ΩBabelPluginContext = any[];
18
+ //#endregion
3
19
  export { BabelPluginContext, BabelPluginOptions, BabelPluginResolvedConfig, BabelPluginUserConfig, __ΩBabelPluginContext, __ΩBabelPluginOptions, __ΩBabelPluginResolvedConfig, __ΩBabelPluginUserConfig };
@@ -1 +1 @@
1
- import"../plugin-CpyJWCZI.mjs";export{};
1
+ export{};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-babel",
3
- "version": "0.12.67",
3
+ "version": "0.12.68",
4
4
  "type": "module",
5
5
  "description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
6
6
  "repository": {
@@ -154,23 +154,23 @@
154
154
  "@babel/helper-plugin-utils": "^7.27.1",
155
155
  "@babel/parser": "^7.28.5",
156
156
  "@babel/types": "^7.28.5",
157
- "@storm-software/config-tools": "^1.188.59",
158
- "@stryke/fs": "^0.33.9",
159
- "@stryke/path": "^0.22.0",
160
- "@stryke/type-checks": "^0.4.4",
161
- "@stryke/types": "^0.10.13",
157
+ "@storm-software/config-tools": "^1.188.60",
158
+ "@stryke/fs": "^0.33.20",
159
+ "@stryke/path": "^0.22.11",
160
+ "@stryke/type-checks": "^0.5.9",
161
+ "@stryke/types": "^0.10.23",
162
162
  "chalk": "5.6.2",
163
163
  "defu": "^6.1.4",
164
164
  "jiti": "^2.6.1",
165
- "powerlines": "^0.30.9",
165
+ "powerlines": "^0.30.10",
166
166
  "unplugin": "3.0.0-beta.3"
167
167
  },
168
168
  "devDependencies": {
169
169
  "@babel/plugin-syntax-typescript": "^7.27.1",
170
- "@powerlines/nx": "^0.10.58",
171
- "@powerlines/plugin-plugin": "^0.12.10",
170
+ "@powerlines/nx": "^0.10.59",
171
+ "@powerlines/plugin-plugin": "^0.12.11",
172
172
  "@types/node": "^24.10.1"
173
173
  },
174
174
  "publishConfig": { "access": "public" },
175
- "gitHead": "00fa339177561d404892937d2c24fe2a5b3df4e7"
175
+ "gitHead": "1fa17406f69248e0a35ca56c09b1f4589e4d49d7"
176
176
  }
@@ -1 +0,0 @@
1
- const e=require(`./chunk-Bmb41Sf3.cjs`);let t=require(`@babel/generator`);t=e.t(t);let n=require(`@babel/parser`);function r(e,t={}){return(0,n.parse)(e,{plugins:[`typescript`],sourceType:`module`,allowImportExportEverywhere:!0,allowAwaitOutsideFunction:!0,...t})}let i=t.default;`default`in i&&(i=i.default);function a(e,t){return i(e,t?{importAttributesKeyword:`with`,sourceMaps:!0,...t}:void 0)}Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return a}});
@@ -1,19 +0,0 @@
1
- import { GeneratorOptions, GeneratorResult, GeneratorResult as GeneratorResult$1 } from "@babel/generator";
2
- import { ParseResult, ParserOptions } from "@babel/parser";
3
- import * as t from "@babel/types";
4
-
5
- //#region src/helpers/ast-utils.d.ts
6
-
7
- /**
8
- * Parse the given code into an AST.
9
- *
10
- * @param code - The code to parse.
11
- * @param opts - The options for parsing.
12
- * @returns The parsed AST.
13
- */
14
- declare function parseAst(code: string, opts?: ParserOptions): ParseResult<t.File>;
15
- type GenerateFromAstOptions = GeneratorOptions & Required<Pick<GeneratorOptions, "sourceFileName" | "filename">>;
16
- declare function generateFromAst(ast: t.Node, opts?: GenerateFromAstOptions): GeneratorResult;
17
- declare type __ΩGenerateFromAstOptions = any[];
18
- //#endregion
19
- export { parseAst as a, generateFromAst as i, GeneratorResult$1 as n, __ΩGenerateFromAstOptions as r, GenerateFromAstOptions as t };
@@ -1,19 +0,0 @@
1
- import { GeneratorOptions, GeneratorResult, GeneratorResult as GeneratorResult$1 } from "@babel/generator";
2
- import { ParseResult, ParserOptions } from "@babel/parser";
3
- import * as t from "@babel/types";
4
-
5
- //#region src/helpers/ast-utils.d.ts
6
-
7
- /**
8
- * Parse the given code into an AST.
9
- *
10
- * @param code - The code to parse.
11
- * @param opts - The options for parsing.
12
- * @returns The parsed AST.
13
- */
14
- declare function parseAst(code: string, opts?: ParserOptions): ParseResult<t.File>;
15
- type GenerateFromAstOptions = GeneratorOptions & Required<Pick<GeneratorOptions, "sourceFileName" | "filename">>;
16
- declare function generateFromAst(ast: t.Node, opts?: GenerateFromAstOptions): GeneratorResult;
17
- declare type __ΩGenerateFromAstOptions = any[];
18
- //#endregion
19
- export { parseAst as a, generateFromAst as i, GeneratorResult$1 as n, __ΩGenerateFromAstOptions as r, GenerateFromAstOptions as t };
@@ -1 +0,0 @@
1
- import e from"@babel/generator";import{parse as t}from"@babel/parser";function n(e,n={}){return t(e,{plugins:[`typescript`],sourceType:`module`,allowImportExportEverywhere:!0,allowAwaitOutsideFunction:!0,...n})}let r=e;`default`in r&&(r=r.default);function i(e,t){return r(e,t?{importAttributesKeyword:`with`,sourceMaps:!0,...t}:void 0)}export{n,i as t};