@powerlines/plugin-babel 0.12.131 → 0.12.133
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/dist/{chunk-CbDLau6x.cjs → _virtual/rolldown_runtime.cjs} +1 -6
- package/dist/helpers/ast-utils.cjs +34 -3
- package/dist/helpers/ast-utils.d.cts +19 -2
- package/dist/helpers/ast-utils.d.mts +19 -2
- package/dist/helpers/ast-utils.mjs +30 -1
- package/dist/helpers/create-plugin.cjs +40 -2
- package/dist/helpers/create-plugin.d.cts +14 -2
- package/dist/helpers/create-plugin.d.mts +14 -2
- package/dist/helpers/create-plugin.mjs +37 -1
- package/dist/helpers/filters.cjs +58 -5
- package/dist/helpers/filters.d.cts +41 -2
- package/dist/helpers/filters.d.mts +42 -2
- package/dist/helpers/filters.mjs +53 -1
- package/dist/helpers/index.cjs +21 -22
- package/dist/helpers/index.d.cts +5 -7
- package/dist/helpers/index.d.mts +5 -7
- package/dist/helpers/index.mjs +5 -6
- package/dist/helpers/module-helpers.cjs +102 -9
- package/dist/helpers/module-helpers.d.cts +48 -2
- package/dist/helpers/module-helpers.d.mts +48 -2
- package/dist/helpers/module-helpers.mjs +93 -2
- package/dist/helpers/options.cjs +49 -4
- package/dist/helpers/options.d.cts +17 -2
- package/dist/helpers/options.d.mts +17 -2
- package/dist/helpers/options.mjs +45 -2
- package/dist/index.cjs +27 -29
- package/dist/index.d.cts +8 -9
- package/dist/index.d.mts +9 -9
- package/dist/index.mjs +6 -8
- package/dist/powerlines/src/internal/helpers/hooks.d.mts +5 -0
- package/dist/powerlines/src/lib/logger.cjs +41 -0
- package/dist/powerlines/src/lib/logger.mjs +39 -0
- package/dist/powerlines/src/types/api.d.mts +5 -0
- package/dist/powerlines/src/types/babel.d.cts +50 -0
- package/dist/powerlines/src/types/babel.d.mts +50 -0
- package/dist/powerlines/src/types/build.d.cts +145 -0
- package/dist/powerlines/src/types/build.d.mts +145 -0
- package/dist/powerlines/src/types/commands.d.cts +8 -0
- package/dist/powerlines/src/types/commands.d.mts +9 -0
- package/dist/powerlines/src/types/config.d.cts +387 -0
- package/dist/powerlines/src/types/config.d.mts +387 -0
- package/dist/powerlines/src/types/context.d.cts +403 -0
- package/dist/powerlines/src/types/context.d.mts +405 -0
- package/dist/powerlines/src/types/fs.d.cts +486 -0
- package/dist/powerlines/src/types/fs.d.mts +486 -0
- package/dist/powerlines/src/types/hooks.d.mts +2 -0
- package/dist/powerlines/src/types/index.d.mts +12 -0
- package/dist/powerlines/src/types/plugin.d.cts +231 -0
- package/dist/powerlines/src/types/plugin.d.mts +231 -0
- package/dist/powerlines/src/types/resolved.d.cts +82 -0
- package/dist/powerlines/src/types/resolved.d.mts +82 -0
- package/dist/powerlines/src/types/tsconfig.d.cts +69 -0
- package/dist/powerlines/src/types/tsconfig.d.mts +69 -0
- package/dist/powerlines/src/types/unplugin.d.mts +6 -0
- package/dist/types/index.cjs +0 -2
- package/dist/types/index.d.cts +1 -3
- package/dist/types/index.d.mts +1 -3
- package/dist/types/index.mjs +0 -3
- package/dist/types/plugin.cjs +0 -1
- package/dist/types/plugin.d.cts +18 -2
- package/dist/types/plugin.d.mts +18 -2
- package/dist/types/plugin.mjs +0 -2
- package/package.json +5 -5
- package/dist/ast-utils-BcmWaIan.cjs +0 -45
- package/dist/ast-utils-Bs6DBkKg.d.mts +0 -19
- package/dist/ast-utils-DU1foCxH.mjs +0 -32
- package/dist/ast-utils-DeuXcuqs.d.cts +0 -19
- package/dist/babel-B9i2IAT_.d.cts +0 -1805
- package/dist/babel-DY_imD3U.d.mts +0 -1805
- package/dist/create-plugin-BPSvsem_.mjs +0 -73
- package/dist/create-plugin-CNzMrex8.d.mts +0 -14
- package/dist/create-plugin-CQA6zFdt.d.cts +0 -14
- package/dist/create-plugin-Cs1zZrvI.cjs +0 -80
- package/dist/filters-93Z-7Nov.d.mts +0 -44
- package/dist/filters-C04cfcQR.mjs +0 -55
- package/dist/filters-D6Qe6UbO.d.cts +0 -41
- package/dist/filters-Dl2RKvrm.cjs +0 -79
- package/dist/helpers-BnW_4z5h.mjs +0 -1
- package/dist/helpers-Bx2yBrpn.cjs +0 -0
- package/dist/index-ClXLQ1fw.d.mts +0 -1
- package/dist/index-DeEmP3Jc.d.cts +0 -1
- package/dist/index-QbUkWSLh.d.mts +0 -1
- package/dist/index-zO0Ly4bS.d.cts +0 -1
- package/dist/module-helpers-Ckq8sc4l.mjs +0 -95
- package/dist/module-helpers-DRUocgcq.d.cts +0 -49
- package/dist/module-helpers-DiSYdstQ.d.mts +0 -49
- package/dist/module-helpers-Non-jHMu.cjs +0 -138
- package/dist/options-BQhc80ih.mjs +0 -47
- package/dist/options-CCMyIIWc.d.cts +0 -17
- package/dist/options-DgdPmsbF.d.mts +0 -17
- package/dist/options-u2MhTIFH.cjs +0 -60
- package/dist/plugin-BL8TLixo.mjs +0 -1
- package/dist/plugin-BSBH78mm.cjs +0 -0
- package/dist/plugin-Bc0EOyGF.d.mts +0 -17
- package/dist/plugin-DhjfPNQS.d.cts +0 -17
- package/dist/types-CKPddlfS.cjs +0 -0
- package/dist/types-CvhspRRt.mjs +0 -1
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
const require_chunk = require('./chunk-CbDLau6x.cjs');
|
|
2
|
-
const require_ast_utils = require('./ast-utils-BcmWaIan.cjs');
|
|
3
|
-
let __babel_types = require("@babel/types");
|
|
4
|
-
__babel_types = require_chunk.__toESM(__babel_types);
|
|
5
|
-
let __stryke_type_checks_is_string = require("@stryke/type-checks/is-string");
|
|
6
|
-
|
|
7
|
-
//#region src/helpers/module-helpers.ts
|
|
8
|
-
/**
|
|
9
|
-
* Finds an export in the given Babel AST program by its key.
|
|
10
|
-
*
|
|
11
|
-
* @param ast - The parsed Babel AST result containing the program body.
|
|
12
|
-
* @param key - The name of the export to find (e.g., "default" or a named export).
|
|
13
|
-
* @returns The declaration of the export if found, otherwise undefined.
|
|
14
|
-
*/
|
|
15
|
-
function findExport(ast, key) {
|
|
16
|
-
const type = key === "default" ? "ExportDefaultDeclaration" : "ExportNamedDeclaration";
|
|
17
|
-
for (const node of ast.program.body) if (node.type === type) {
|
|
18
|
-
if (key === "default") return node.declaration;
|
|
19
|
-
if (node.declaration && "declarations" in node.declaration) {
|
|
20
|
-
const declaration = node.declaration.declarations[0];
|
|
21
|
-
if (declaration && "name" in declaration.id && declaration.id.name === key) return declaration.init;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Lists all exports from the given Babel AST program.
|
|
27
|
-
*
|
|
28
|
-
* @param codeOrAst - The parsed Babel AST result containing the program body.
|
|
29
|
-
* @returns An array of export names, including "default" for default exports.
|
|
30
|
-
*/
|
|
31
|
-
function listExports(codeOrAst) {
|
|
32
|
-
return ((0, __stryke_type_checks_is_string.isString)(codeOrAst) ? require_ast_utils.parseAst(codeOrAst) : codeOrAst).program.body.flatMap((i) => {
|
|
33
|
-
if (i.type === "ExportDefaultDeclaration") return ["default"];
|
|
34
|
-
if (i.type === "ExportNamedDeclaration" && i.declaration && "declarations" in i.declaration) return i.declaration.declarations.map((d) => "name" in d.id ? d.id.name : "");
|
|
35
|
-
return [];
|
|
36
|
-
}).filter(Boolean);
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Lists all imports from the given Babel AST program.
|
|
40
|
-
*
|
|
41
|
-
* @param ast - The parsed Babel AST result containing the program body.
|
|
42
|
-
* @returns An array of import names, including "default" for default imports.
|
|
43
|
-
*/
|
|
44
|
-
function listImports(ast) {
|
|
45
|
-
return ast.program.body.flatMap((i) => {
|
|
46
|
-
if (i.type === "ImportDeclaration") return i.specifiers.map((s) => {
|
|
47
|
-
if (s.type === "ImportDefaultSpecifier") return "default";
|
|
48
|
-
if (s.type === "ImportSpecifier" && "imported" in s) return s.imported.type === "Identifier" ? s.imported.name : s.imported.value;
|
|
49
|
-
return "";
|
|
50
|
-
});
|
|
51
|
-
return [];
|
|
52
|
-
}).filter(Boolean);
|
|
53
|
-
}
|
|
54
|
-
function isImportCall(calleePath) {
|
|
55
|
-
return __babel_types.isImport(calleePath.node.callee);
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Gets the import declaration for a given name and specifier.
|
|
59
|
-
*
|
|
60
|
-
* @param specifier - The specifier of the import.
|
|
61
|
-
* @param name - The name of the import.
|
|
62
|
-
* @param named - Optional named import.
|
|
63
|
-
* @returns The import declaration.
|
|
64
|
-
*/
|
|
65
|
-
function getImport(specifier, name, named) {
|
|
66
|
-
return __babel_types.importDeclaration([__babel_types.importSpecifier(__babel_types.identifier(name), __babel_types.stringLiteral(named || name))], __babel_types.stringLiteral(specifier));
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Adds an import to the program if it doesn't already exist.
|
|
70
|
-
*
|
|
71
|
-
* @param path - The current NodePath in the AST.
|
|
72
|
-
* @param specifier - The import specifier.
|
|
73
|
-
*/
|
|
74
|
-
function addImport(path, specifier) {
|
|
75
|
-
addImportsToProgram(path.scope.getProgramParent().path, specifier);
|
|
76
|
-
}
|
|
77
|
-
function isNonNamespacedImport(importDeclPath) {
|
|
78
|
-
return importDeclPath.get("specifiers").filter(Boolean).every((specifier) => specifier?.isImportSpecifier()) && importDeclPath.node.importKind !== "type" && importDeclPath.node.importKind !== "typeof";
|
|
79
|
-
}
|
|
80
|
-
function getExistingImports(program) {
|
|
81
|
-
const existingImports = /* @__PURE__ */ new Map();
|
|
82
|
-
program.traverse({ ImportDeclaration(path) {
|
|
83
|
-
if (isNonNamespacedImport(path)) existingImports.set(path.node.source.value, path);
|
|
84
|
-
} });
|
|
85
|
-
return existingImports;
|
|
86
|
-
}
|
|
87
|
-
function addImportsToProgram(path, specifier) {
|
|
88
|
-
/**
|
|
89
|
-
* If an existing import of this module exists (ie \`import \{ ... \} from
|
|
90
|
-
* '<moduleName>'\`), inject new imported specifiers into the list of
|
|
91
|
-
* destructured variables.
|
|
92
|
-
*/
|
|
93
|
-
if (!getExistingImports(path).get(specifier.module)) path.unshiftContainer("body", __babel_types.importDeclaration([__babel_types.importSpecifier(__babel_types.identifier(specifier.name || specifier.imported), __babel_types.identifier(specifier.imported))], __babel_types.stringLiteral(specifier.module)));
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
//#endregion
|
|
97
|
-
Object.defineProperty(exports, 'addImport', {
|
|
98
|
-
enumerable: true,
|
|
99
|
-
get: function () {
|
|
100
|
-
return addImport;
|
|
101
|
-
}
|
|
102
|
-
});
|
|
103
|
-
Object.defineProperty(exports, 'addImportsToProgram', {
|
|
104
|
-
enumerable: true,
|
|
105
|
-
get: function () {
|
|
106
|
-
return addImportsToProgram;
|
|
107
|
-
}
|
|
108
|
-
});
|
|
109
|
-
Object.defineProperty(exports, 'findExport', {
|
|
110
|
-
enumerable: true,
|
|
111
|
-
get: function () {
|
|
112
|
-
return findExport;
|
|
113
|
-
}
|
|
114
|
-
});
|
|
115
|
-
Object.defineProperty(exports, 'getImport', {
|
|
116
|
-
enumerable: true,
|
|
117
|
-
get: function () {
|
|
118
|
-
return getImport;
|
|
119
|
-
}
|
|
120
|
-
});
|
|
121
|
-
Object.defineProperty(exports, 'isImportCall', {
|
|
122
|
-
enumerable: true,
|
|
123
|
-
get: function () {
|
|
124
|
-
return isImportCall;
|
|
125
|
-
}
|
|
126
|
-
});
|
|
127
|
-
Object.defineProperty(exports, 'listExports', {
|
|
128
|
-
enumerable: true,
|
|
129
|
-
get: function () {
|
|
130
|
-
return listExports;
|
|
131
|
-
}
|
|
132
|
-
});
|
|
133
|
-
Object.defineProperty(exports, 'listImports', {
|
|
134
|
-
enumerable: true,
|
|
135
|
-
get: function () {
|
|
136
|
-
return listImports;
|
|
137
|
-
}
|
|
138
|
-
});
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { r as getPluginName } from "./filters-C04cfcQR.mjs";
|
|
2
|
-
import { LogLevelLabel } from "@storm-software/config-tools/types";
|
|
3
|
-
import { isFunction } from "@stryke/type-checks/is-function";
|
|
4
|
-
import chalk from "chalk";
|
|
5
|
-
|
|
6
|
-
//#region src/helpers/options.ts
|
|
7
|
-
function resolvePluginFunction(context, plugin) {
|
|
8
|
-
try {
|
|
9
|
-
return Array.isArray(plugin) && plugin.length > 0 && plugin[0] ? isFunction(plugin[0]) ? plugin[0](context) : plugin[0] : isFunction(plugin) ? plugin(context) : plugin;
|
|
10
|
-
} catch {
|
|
11
|
-
return plugin[0];
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Resolve the [Babel](https://babeljs.io/) plugin.
|
|
16
|
-
*
|
|
17
|
-
* @param context - The context for the transformation.
|
|
18
|
-
* @param code - The code to be transformed.
|
|
19
|
-
* @param id - The ID of the source file.
|
|
20
|
-
* @param plugin - The Babel plugin to resolve.
|
|
21
|
-
* @returns The resolved Babel plugin options, or undefined if the plugin is filtered out.
|
|
22
|
-
*/
|
|
23
|
-
function resolveBabelPlugin(context, code, id, plugin) {
|
|
24
|
-
if (Array.isArray(plugin) && plugin.length > 0 && plugin[0]) {
|
|
25
|
-
if (plugin.length > 2 && plugin[2] && isFunction(plugin[2]) && !plugin[2](code, id)) {
|
|
26
|
-
context.log(LogLevelLabel.TRACE, `Skipping filtered Babel plugin ${chalk.bold.cyanBright(getPluginName(plugin) || "unnamed")} for ${id}`);
|
|
27
|
-
return;
|
|
28
|
-
}
|
|
29
|
-
return plugin.length > 2 ? [
|
|
30
|
-
resolvePluginFunction(context, plugin),
|
|
31
|
-
plugin[1],
|
|
32
|
-
plugin[2]
|
|
33
|
-
] : [
|
|
34
|
-
resolvePluginFunction(context, plugin),
|
|
35
|
-
plugin[1],
|
|
36
|
-
null
|
|
37
|
-
];
|
|
38
|
-
}
|
|
39
|
-
return [
|
|
40
|
-
resolvePluginFunction(context, plugin),
|
|
41
|
-
{},
|
|
42
|
-
null
|
|
43
|
-
];
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
//#endregion
|
|
47
|
-
export { resolvePluginFunction as n, resolveBabelPlugin as t };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { i as BabelTransformPluginOptions, s as ResolvedBabelTransformPluginOptions, u as Context } from "./babel-B9i2IAT_.cjs";
|
|
2
|
-
import { PluginOptions, PluginTarget } from "@babel/core";
|
|
3
|
-
|
|
4
|
-
//#region src/helpers/options.d.ts
|
|
5
|
-
declare function resolvePluginFunction(context: Context, plugin: any | PluginTarget | any[] | [PluginTarget, PluginOptions] | [PluginTarget, PluginOptions, string | undefined]): BabelTransformPluginOptions;
|
|
6
|
-
/**
|
|
7
|
-
* Resolve the [Babel](https://babeljs.io/) plugin.
|
|
8
|
-
*
|
|
9
|
-
* @param context - The context for the transformation.
|
|
10
|
-
* @param code - The code to be transformed.
|
|
11
|
-
* @param id - The ID of the source file.
|
|
12
|
-
* @param plugin - The Babel plugin to resolve.
|
|
13
|
-
* @returns The resolved Babel plugin options, or undefined if the plugin is filtered out.
|
|
14
|
-
*/
|
|
15
|
-
declare function resolveBabelPlugin(context: Context, code: string, id: string, plugin: BabelTransformPluginOptions): ResolvedBabelTransformPluginOptions | undefined;
|
|
16
|
-
//#endregion
|
|
17
|
-
export { resolvePluginFunction as n, resolveBabelPlugin as t };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { i as BabelTransformPluginOptions, s as ResolvedBabelTransformPluginOptions, u as Context } from "./babel-DY_imD3U.mjs";
|
|
2
|
-
import { PluginOptions, PluginTarget } from "@babel/core";
|
|
3
|
-
|
|
4
|
-
//#region src/helpers/options.d.ts
|
|
5
|
-
declare function resolvePluginFunction(context: Context, plugin: any | PluginTarget | any[] | [PluginTarget, PluginOptions] | [PluginTarget, PluginOptions, string | undefined]): BabelTransformPluginOptions;
|
|
6
|
-
/**
|
|
7
|
-
* Resolve the [Babel](https://babeljs.io/) plugin.
|
|
8
|
-
*
|
|
9
|
-
* @param context - The context for the transformation.
|
|
10
|
-
* @param code - The code to be transformed.
|
|
11
|
-
* @param id - The ID of the source file.
|
|
12
|
-
* @param plugin - The Babel plugin to resolve.
|
|
13
|
-
* @returns The resolved Babel plugin options, or undefined if the plugin is filtered out.
|
|
14
|
-
*/
|
|
15
|
-
declare function resolveBabelPlugin(context: Context, code: string, id: string, plugin: BabelTransformPluginOptions): ResolvedBabelTransformPluginOptions | undefined;
|
|
16
|
-
//#endregion
|
|
17
|
-
export { resolvePluginFunction as n, resolveBabelPlugin as t };
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
const require_chunk = require('./chunk-CbDLau6x.cjs');
|
|
2
|
-
const require_filters = require('./filters-Dl2RKvrm.cjs');
|
|
3
|
-
let __storm_software_config_tools_types = require("@storm-software/config-tools/types");
|
|
4
|
-
let __stryke_type_checks_is_function = require("@stryke/type-checks/is-function");
|
|
5
|
-
let chalk = require("chalk");
|
|
6
|
-
chalk = require_chunk.__toESM(chalk);
|
|
7
|
-
|
|
8
|
-
//#region src/helpers/options.ts
|
|
9
|
-
function resolvePluginFunction(context, plugin) {
|
|
10
|
-
try {
|
|
11
|
-
return Array.isArray(plugin) && plugin.length > 0 && plugin[0] ? (0, __stryke_type_checks_is_function.isFunction)(plugin[0]) ? plugin[0](context) : plugin[0] : (0, __stryke_type_checks_is_function.isFunction)(plugin) ? plugin(context) : plugin;
|
|
12
|
-
} catch {
|
|
13
|
-
return plugin[0];
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Resolve the [Babel](https://babeljs.io/) plugin.
|
|
18
|
-
*
|
|
19
|
-
* @param context - The context for the transformation.
|
|
20
|
-
* @param code - The code to be transformed.
|
|
21
|
-
* @param id - The ID of the source file.
|
|
22
|
-
* @param plugin - The Babel plugin to resolve.
|
|
23
|
-
* @returns The resolved Babel plugin options, or undefined if the plugin is filtered out.
|
|
24
|
-
*/
|
|
25
|
-
function resolveBabelPlugin(context, code, id, plugin) {
|
|
26
|
-
if (Array.isArray(plugin) && plugin.length > 0 && plugin[0]) {
|
|
27
|
-
if (plugin.length > 2 && plugin[2] && (0, __stryke_type_checks_is_function.isFunction)(plugin[2]) && !plugin[2](code, id)) {
|
|
28
|
-
context.log(__storm_software_config_tools_types.LogLevelLabel.TRACE, `Skipping filtered Babel plugin ${chalk.default.bold.cyanBright(require_filters.getPluginName(plugin) || "unnamed")} for ${id}`);
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
return plugin.length > 2 ? [
|
|
32
|
-
resolvePluginFunction(context, plugin),
|
|
33
|
-
plugin[1],
|
|
34
|
-
plugin[2]
|
|
35
|
-
] : [
|
|
36
|
-
resolvePluginFunction(context, plugin),
|
|
37
|
-
plugin[1],
|
|
38
|
-
null
|
|
39
|
-
];
|
|
40
|
-
}
|
|
41
|
-
return [
|
|
42
|
-
resolvePluginFunction(context, plugin),
|
|
43
|
-
{},
|
|
44
|
-
null
|
|
45
|
-
];
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
//#endregion
|
|
49
|
-
Object.defineProperty(exports, 'resolveBabelPlugin', {
|
|
50
|
-
enumerable: true,
|
|
51
|
-
get: function () {
|
|
52
|
-
return resolveBabelPlugin;
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
Object.defineProperty(exports, 'resolvePluginFunction', {
|
|
56
|
-
enumerable: true,
|
|
57
|
-
get: function () {
|
|
58
|
-
return resolvePluginFunction;
|
|
59
|
-
}
|
|
60
|
-
});
|
package/dist/plugin-BL8TLixo.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/plugin-BSBH78mm.cjs
DELETED
|
File without changes
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { c as BabelUserConfig, d as PluginContext, l as UserConfig, m as ResolvedConfig, p as BabelResolvedConfig } from "./babel-DY_imD3U.mjs";
|
|
2
|
-
|
|
3
|
-
//#region src/types/plugin.d.ts
|
|
4
|
-
type BabelPluginOptions = Partial<BabelUserConfig>;
|
|
5
|
-
type BabelPluginUserConfig = UserConfig;
|
|
6
|
-
interface BabelPluginResolvedConfig extends ResolvedConfig {
|
|
7
|
-
transform: {
|
|
8
|
-
babel: BabelResolvedConfig;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
type BabelPluginContext<TResolvedConfig extends BabelPluginResolvedConfig = BabelPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
12
|
-
declare type __ΩBabelPluginOptions = any[];
|
|
13
|
-
declare type __ΩBabelPluginUserConfig = any[];
|
|
14
|
-
declare type __ΩBabelPluginResolvedConfig = any[];
|
|
15
|
-
declare type __ΩBabelPluginContext = any[];
|
|
16
|
-
//#endregion
|
|
17
|
-
export { __ΩBabelPluginContext as a, __ΩBabelPluginUserConfig as c, BabelPluginUserConfig as i, BabelPluginOptions as n, __ΩBabelPluginOptions as o, BabelPluginResolvedConfig as r, __ΩBabelPluginResolvedConfig as s, BabelPluginContext as t };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { c as BabelUserConfig, d as PluginContext, l as UserConfig, m as ResolvedConfig, p as BabelResolvedConfig } from "./babel-B9i2IAT_.cjs";
|
|
2
|
-
|
|
3
|
-
//#region src/types/plugin.d.ts
|
|
4
|
-
type BabelPluginOptions = Partial<BabelUserConfig>;
|
|
5
|
-
type BabelPluginUserConfig = UserConfig;
|
|
6
|
-
interface BabelPluginResolvedConfig extends ResolvedConfig {
|
|
7
|
-
transform: {
|
|
8
|
-
babel: BabelResolvedConfig;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
type BabelPluginContext<TResolvedConfig extends BabelPluginResolvedConfig = BabelPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
12
|
-
declare type __ΩBabelPluginOptions = any[];
|
|
13
|
-
declare type __ΩBabelPluginUserConfig = any[];
|
|
14
|
-
declare type __ΩBabelPluginResolvedConfig = any[];
|
|
15
|
-
declare type __ΩBabelPluginContext = any[];
|
|
16
|
-
//#endregion
|
|
17
|
-
export { __ΩBabelPluginContext as a, __ΩBabelPluginUserConfig as c, BabelPluginUserConfig as i, BabelPluginOptions as n, __ΩBabelPluginOptions as o, BabelPluginResolvedConfig as r, __ΩBabelPluginResolvedConfig as s, BabelPluginContext as t };
|
package/dist/types-CKPddlfS.cjs
DELETED
|
File without changes
|
package/dist/types-CvhspRRt.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|