@powerlines/plugin-babel 0.12.309 → 0.12.311
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/{config-B8fQjuSs.d.cts → config-CB64op4Z.d.mts} +2 -2
- package/dist/{config-B8fQjuSs.d.cts.map → config-CB64op4Z.d.mts.map} +1 -1
- package/dist/{config-BGnCc0aq.d.mts → config-CdGXI-Ik.d.cts} +2 -2
- package/dist/{config-BGnCc0aq.d.mts.map → config-CdGXI-Ik.d.cts.map} +1 -1
- package/dist/create-plugin-BbG_dRTl.mjs.map +1 -1
- package/dist/{create-plugin-D1_rga7H.d.cts → create-plugin-DgPuOnKS.d.mts} +3 -3
- package/dist/{create-plugin-D1_rga7H.d.cts.map → create-plugin-DgPuOnKS.d.mts.map} +1 -1
- package/dist/{create-plugin-H35OVSz7.d.mts → create-plugin-EhzG7u2c.d.cts} +3 -3
- package/dist/{create-plugin-H35OVSz7.d.mts.map → create-plugin-EhzG7u2c.d.cts.map} +1 -1
- package/dist/{filters-DX-_VLWz.d.mts → filters-D-MHf7r5.d.mts} +3 -3
- package/dist/{filters-DX-_VLWz.d.mts.map → filters-D-MHf7r5.d.mts.map} +1 -1
- package/dist/filters-DjAUc6r9.mjs.map +1 -1
- package/dist/{filters-xc5uoxxD.d.cts → filters-DxhmCwwY.d.cts} +3 -3
- package/dist/{filters-xc5uoxxD.d.cts.map → filters-DxhmCwwY.d.cts.map} +1 -1
- package/dist/helpers/create-plugin.d.cts +2 -2
- package/dist/helpers/create-plugin.d.mts +2 -2
- package/dist/helpers/filters.d.cts +2 -2
- package/dist/helpers/filters.d.mts +2 -2
- package/dist/helpers/index.d.cts +5 -5
- package/dist/helpers/index.d.mts +5 -5
- package/dist/helpers/module-helpers.d.cts +2 -2
- package/dist/helpers/module-helpers.d.mts +2 -2
- package/dist/helpers/options.d.cts +2 -2
- package/dist/helpers/options.d.mts +2 -2
- package/dist/index.d.cts +12 -7
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +12 -7
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/{module-helpers-B913A2FR.d.mts → module-helpers-B5Q7eI_S.d.mts} +2 -2
- package/dist/{module-helpers-B913A2FR.d.mts.map → module-helpers-B5Q7eI_S.d.mts.map} +1 -1
- package/dist/{module-helpers-BBKb6fKg.d.cts → module-helpers-UpBemakt.d.cts} +2 -2
- package/dist/{module-helpers-BBKb6fKg.d.cts.map → module-helpers-UpBemakt.d.cts.map} +1 -1
- package/dist/{options-CNyetWnk.d.cts → options-BRFTG1Mg.d.mts} +3 -3
- package/dist/{options-CNyetWnk.d.cts.map → options-BRFTG1Mg.d.mts.map} +1 -1
- package/dist/options-DT_wvMGu.mjs.map +1 -1
- package/dist/{options-Z_v0-Y5V.d.mts → options-DvKZh-FA.d.cts} +3 -3
- package/dist/{options-Z_v0-Y5V.d.mts.map → options-DvKZh-FA.d.cts.map} +1 -1
- package/dist/{plugin-10Y9IjgN.d.cts → plugin-F6ospfOM.d.cts} +3 -3
- package/dist/{plugin-10Y9IjgN.d.cts.map → plugin-F6ospfOM.d.cts.map} +1 -1
- package/dist/{plugin-25m6BdNV.d.mts → plugin-gAUFMAXK.d.mts} +3 -3
- package/dist/{plugin-25m6BdNV.d.mts.map → plugin-gAUFMAXK.d.mts.map} +1 -1
- package/dist/types/config.d.cts +1 -1
- package/dist/types/config.d.mts +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.mts +2 -2
- package/dist/types/plugin.d.cts +2 -2
- package/dist/types/plugin.d.mts +2 -2
- package/package.json +5 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Context, LogFn } from "@powerlines/core/types";
|
|
2
1
|
import { PluginItem, PluginObj, PluginPass, TransformOptions, transformAsync } from "@babel/core";
|
|
3
2
|
import { BabelAPI } from "@babel/helper-plugin-utils";
|
|
3
|
+
import { Context, LogFn } from "@powerlines/core";
|
|
4
4
|
|
|
5
5
|
//#region src/types/config.d.ts
|
|
6
6
|
interface NamedImportDefinition {
|
|
@@ -83,4 +83,4 @@ declare type __ΩBabelUserConfig = any[];
|
|
|
83
83
|
declare type __ΩBabelResolvedConfig = any[];
|
|
84
84
|
//#endregion
|
|
85
85
|
export { __ΩResolvedBabelTransformPluginOptions as A, __ΩBabelTransformPluginOptions as C, __ΩImportDefinition as D, __ΩDefaultImportDefinition as E, __ΩImportSpecifier as O, __ΩBabelTransformPluginFilter as S, __ΩDeclareBabelTransformPluginReturn as T, __ΩBabelResolvedConfig as _, BabelTransformPluginBuilder as a, __ΩBabelTransformPluginBuilder as b, BabelTransformPluginOptions as c, DefaultImportDefinition as d, ImportDefinition as f, __ΩBabelPluginPass as g, ResolvedBabelTransformPluginOptions as h, BabelTransformPlugin as i, __ΩNamedImportDefinition as k, BabelUserConfig as l, NamedImportDefinition as m, BabelResolvedConfig as n, BabelTransformPluginBuilderParams as o, ImportSpecifier as p, BabelTransformInput as r, BabelTransformPluginFilter as s, BabelPluginPass as t, DeclareBabelTransformPluginReturn as u, __ΩBabelTransformInput as v, __ΩBabelUserConfig as w, __ΩBabelTransformPluginBuilderParams as x, __ΩBabelTransformPlugin as y };
|
|
86
|
-
//# sourceMappingURL=config-
|
|
86
|
+
//# sourceMappingURL=config-CB64op4Z.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-
|
|
1
|
+
{"version":3,"file":"config-CB64op4Z.d.mts","names":[],"sources":["../src/types/config.ts"],"sourcesContent":[],"mappings":";;;;;UA4BiB,qBAAA;;EAAA,MAAA,EAAA,MAAA;EAMA,IAAA,EAAA,OAAA;AAKjB;AAEY,UAPK,uBAAA,CAO+B;EAEpC,MAAA,EAAA,MAAA;EAEA,IAAA,EAAA,SAAA;;AACiB,KAPjB,gBAAA,GAAmB,qBAOF,GAP0B,uBAO1B;AACV,KANP,eAMO,CAAA,SAAA,OAAA,CAAA,GAN6B,UAM7B,GAN0C,MAM1C;AAAsB,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A6CJ,QA7CI,CA6CK,IA7CL,CA6CU,oBA7CV,CA6C+B,QA7C/B,EA6CyC,QA7CzC,EA6CmD,MA7CnD,CAAA,EAAA,QAAA,CAAA,CAAA;;AAGN;;;;;;;;;;;AASM,UA+CW,eAAA,CA/CX;EAA0B,IAAA,CAAA,EAAA,MAAA;EAGpB,MAAA,EAAA,MAAA;EACV,QAAA,EAAA,MAAA;;AAA4B,KAiDlB,eAAA,GAAkB,UAjDA,CAAA,OAiDkB,cAjDlB,CAAA,CAAA,CAAA,CAAA,GAAA;EAAT;;;EAIJ,OAAA,CAAA,EAiDL,2BAjDsC,EAAA;EAC/B;;;EACsB,OAAA,CAAA,EAoD7B,2BApD6B,EAAA;CAGlC;AACA,KAmDK,mBAAA,GAAsB,IAnD3B,CAmDgC,eAnDhC,EAAA,SAAA,GAAA,SAAA,CAAA,GAoDL,QApDK,CAoDI,IApDJ,CAoDS,eApDT,EAAA,SAAA,GAAA,SAAA,CAAA,CAAA;AACI,wCAAA,GAAA,EAAA;AACA,0CAAA,GAAA,EAAA;AAAQ,mCAAA,GAAA,EAAA;AAIP,kCAA2B,GAAA,EAAA;AACpB,6CAAA,GAAA,EAAA;AAAU,uCAAA,GAAA,EAAA;AACV,8CAAA,GAAA,EAAA;AAAsB,sDAAA,GAAA,EAAA;AAGG,sCAAA,GAAA,EAAA;AAAU,oDAAA,GAAA,EAAA;AAA5C,8CAAA,GAAA,EAAA;AACK,oDAAA,GAAA,EAAA;AAAyB,kCAAA,GAAA,EAAA;AAAhB,kCAAA,GAAA,EAAA;AAAnB,sCAAA,GAAA,EAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { Context, LogFn } from "@powerlines/core";
|
|
1
2
|
import { PluginItem, PluginObj, PluginPass, TransformOptions, transformAsync } from "@babel/core";
|
|
2
3
|
import { BabelAPI } from "@babel/helper-plugin-utils";
|
|
3
|
-
import { Context, LogFn } from "@powerlines/core/types";
|
|
4
4
|
|
|
5
5
|
//#region src/types/config.d.ts
|
|
6
6
|
interface NamedImportDefinition {
|
|
@@ -83,4 +83,4 @@ declare type __ΩBabelUserConfig = any[];
|
|
|
83
83
|
declare type __ΩBabelResolvedConfig = any[];
|
|
84
84
|
//#endregion
|
|
85
85
|
export { __ΩResolvedBabelTransformPluginOptions as A, __ΩBabelTransformPluginOptions as C, __ΩImportDefinition as D, __ΩDefaultImportDefinition as E, __ΩImportSpecifier as O, __ΩBabelTransformPluginFilter as S, __ΩDeclareBabelTransformPluginReturn as T, __ΩBabelResolvedConfig as _, BabelTransformPluginBuilder as a, __ΩBabelTransformPluginBuilder as b, BabelTransformPluginOptions as c, DefaultImportDefinition as d, ImportDefinition as f, __ΩBabelPluginPass as g, ResolvedBabelTransformPluginOptions as h, BabelTransformPlugin as i, __ΩNamedImportDefinition as k, BabelUserConfig as l, NamedImportDefinition as m, BabelResolvedConfig as n, BabelTransformPluginBuilderParams as o, ImportSpecifier as p, BabelTransformInput as r, BabelTransformPluginFilter as s, BabelPluginPass as t, DeclareBabelTransformPluginReturn as u, __ΩBabelTransformInput as v, __ΩBabelUserConfig as w, __ΩBabelTransformPluginBuilderParams as x, __ΩBabelTransformPlugin as y };
|
|
86
|
-
//# sourceMappingURL=config-
|
|
86
|
+
//# sourceMappingURL=config-CdGXI-Ik.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-
|
|
1
|
+
{"version":3,"file":"config-CdGXI-Ik.d.cts","names":[],"sources":["../src/types/config.ts"],"sourcesContent":[],"mappings":";;;;;UA4BiB,qBAAA;;EAAA,MAAA,EAAA,MAAA;EAMA,IAAA,EAAA,OAAA;AAKjB;AAEY,UAPK,uBAAA,CAO+B;EAEpC,MAAA,EAAA,MAAA;EAEA,IAAA,EAAA,SAAA;;AACiB,KAPjB,gBAAA,GAAmB,qBAOF,GAP0B,uBAO1B;AACV,KANP,eAMO,CAAA,SAAA,OAAA,CAAA,GAN6B,UAM7B,GAN0C,MAM1C;AAAsB,KAJ7B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QA7CI,CA6CK,IA7CL,CA6CU,oBA7CV,CA6C+B,QA7C/B,EA6CyC,QA7CzC,EA6CmD,MA7CnD,CAAA,EAAA,QAAA,CAAA,CAAA;;AAGN;;;;;;;;;;;AASM,UA+CW,eAAA,CA/CX;EAA0B,IAAA,CAAA,EAAA,MAAA;EAGpB,MAAA,EAAA,MAAA;EACV,QAAA,EAAA,MAAA;;AAA4B,KAiDlB,eAAA,GAAkB,UAjDA,CAAA,OAiDkB,cAjDlB,CAAA,CAAA,CAAA,CAAA,GAAA;EAAT;;;EAIJ,OAAA,CAAA,EAiDL,2BAjDsC,EAAA;EAC/B;;;EACsB,OAAA,CAAA,EAoD7B,2BApD6B,EAAA;CAGlC;AACA,KAmDK,mBAAA,GAAsB,IAnD3B,CAmDgC,eAnDhC,EAAA,SAAA,GAAA,SAAA,CAAA,GAoDL,QApDK,CAoDI,IApDJ,CAoDS,eApDT,EAAA,SAAA,GAAA,SAAA,CAAA,CAAA;AACI,wCAAA,GAAA,EAAA;AACA,0CAAA,GAAA,EAAA;AAAQ,mCAAA,GAAA,EAAA;AAIP,kCAA2B,GAAA,EAAA;AACpB,6CAAA,GAAA,EAAA;AAAU,uCAAA,GAAA,EAAA;AACV,8CAAA,GAAA,EAAA;AAAsB,sDAAA,GAAA,EAAA;AAGG,sCAAA,GAAA,EAAA;AAAU,oDAAA,GAAA,EAAA;AAA5C,8CAAA,GAAA,EAAA;AACK,oDAAA,GAAA,EAAA;AAAyB,kCAAA,GAAA,EAAA;AAAhB,kCAAA,GAAA,EAAA;AAAnB,sCAAA,GAAA,EAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-plugin-BbG_dRTl.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 {
|
|
1
|
+
{"version":3,"file":"create-plugin-BbG_dRTl.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 { Context } from \"@powerlines/core\";\nimport { extendLog } from \"@powerlines/core/lib/logger\";\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,5 +1,5 @@
|
|
|
1
|
-
import { a as BabelTransformPluginBuilder, u as DeclareBabelTransformPluginReturn } from "./config-
|
|
2
|
-
import { Context } from "@powerlines/core
|
|
1
|
+
import { a as BabelTransformPluginBuilder, u as DeclareBabelTransformPluginReturn } from "./config-CB64op4Z.mjs";
|
|
2
|
+
import { Context } from "@powerlines/core";
|
|
3
3
|
|
|
4
4
|
//#region src/helpers/create-plugin.d.ts
|
|
5
5
|
|
|
@@ -13,4 +13,4 @@ import { Context } from "@powerlines/core/types";
|
|
|
13
13
|
declare function createBabelPlugin<TContext extends Context = Context, TOptions extends Record<string, any> = Record<string, any>>(name: string, builder: BabelTransformPluginBuilder<TContext, TOptions>): DeclareBabelTransformPluginReturn<TContext, TOptions>;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { createBabelPlugin as t };
|
|
16
|
-
//# sourceMappingURL=create-plugin-
|
|
16
|
+
//# sourceMappingURL=create-plugin-DgPuOnKS.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-plugin-
|
|
1
|
+
{"version":3,"file":"create-plugin-DgPuOnKS.d.mts","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,5 +1,5 @@
|
|
|
1
|
-
import { a as BabelTransformPluginBuilder, u as DeclareBabelTransformPluginReturn } from "./config-
|
|
2
|
-
import { Context } from "@powerlines/core
|
|
1
|
+
import { a as BabelTransformPluginBuilder, u as DeclareBabelTransformPluginReturn } from "./config-CdGXI-Ik.cjs";
|
|
2
|
+
import { Context } from "@powerlines/core";
|
|
3
3
|
|
|
4
4
|
//#region src/helpers/create-plugin.d.ts
|
|
5
5
|
|
|
@@ -13,4 +13,4 @@ import { Context } from "@powerlines/core/types";
|
|
|
13
13
|
declare function createBabelPlugin<TContext extends Context = Context, TOptions extends Record<string, any> = Record<string, any>>(name: string, builder: BabelTransformPluginBuilder<TContext, TOptions>): DeclareBabelTransformPluginReturn<TContext, TOptions>;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { createBabelPlugin as t };
|
|
16
|
-
//# sourceMappingURL=create-plugin-
|
|
16
|
+
//# sourceMappingURL=create-plugin-EhzG7u2c.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-plugin-
|
|
1
|
+
{"version":3,"file":"create-plugin-EhzG7u2c.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,5 +1,5 @@
|
|
|
1
|
-
import { c as BabelTransformPluginOptions, h as ResolvedBabelTransformPluginOptions, i as BabelTransformPlugin, s as BabelTransformPluginFilter } from "./config-
|
|
2
|
-
import { Context } from "@powerlines/core
|
|
1
|
+
import { c as BabelTransformPluginOptions, h as ResolvedBabelTransformPluginOptions, i as BabelTransformPlugin, s as BabelTransformPluginFilter } from "./config-CB64op4Z.mjs";
|
|
2
|
+
import { Context } from "@powerlines/core";
|
|
3
3
|
|
|
4
4
|
//#region src/helpers/filters.d.ts
|
|
5
5
|
declare function getPluginName(plugin?: BabelTransformPluginOptions | string | false | object | ((...args: any[]) => any) | undefined): string | undefined;
|
|
@@ -40,4 +40,4 @@ declare function addPluginFilter(context: Context, plugins: BabelTransformPlugin
|
|
|
40
40
|
declare function addPluginFilter(context: Context, plugin: BabelTransformPlugin | BabelTransformPluginOptions, filter: NonNullable<BabelTransformPluginFilter>): BabelTransformPluginOptions;
|
|
41
41
|
//#endregion
|
|
42
42
|
export { isDuplicatePlugin as i, filterPluginByFileId as n, getPluginName as r, addPluginFilter as t };
|
|
43
|
-
//# sourceMappingURL=filters-
|
|
43
|
+
//# sourceMappingURL=filters-D-MHf7r5.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filters-
|
|
1
|
+
{"version":3,"file":"filters-D-MHf7r5.d.mts","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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filters-DjAUc6r9.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
|
|
1
|
+
{"version":3,"file":"filters-DjAUc6r9.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\";\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"],"mappings":";;;;;AA6BA,SAAgB,cACd,QAOoB;AACpB,QAAO,YAAY,OAAO,GACtB,SACA,MAAM,QAAQ,OAAO,IAAI,OAAO,SAAS,IACvC,cAAc,OAAO,GAAG,GACvB,OAAgC,UAC9B,OAAgC,OAChC,OAAgC,UAChC,OAAgC,OACjC;;;;;;;;;AAUV,SAAgB,kBACd,SACA,QACS;AACT,QAAO,CAAC,EACN,cAAc,OAAO,IACrB,QAAQ,MACN,aACE,MAAM,QAAQ,SAAS,IACvB,cAAc,SAAS,GAAG,KAAK,cAAc,OAAO,CACvD;;;;;;;;;AAWL,SAAgB,qBACd,SACA,QAC4B;AAC5B,SAAQ,MAAc,OACpB,WAAW,MACX,QAAQ,GAAG,IAAI,YAAY,MAC3B,WAAW,QAAQ,GAAG,IAAI,OAC1B,QAAQ,GAAG,IAAI,YAAY,QAAQ,GAAG,IAAI,OAC1C,QAAQ,GAAG,MAAM,YAAY,MAC7B,WAAW,QAAQ,GAAG,MAAM,OAC5B,QAAQ,GAAG,MAAM,YAAY,QAAQ,GAAG,MAAM;;;;;;;;;;;AA0ClD,SAAgB,gBAMd,SACA,iBACA,QACA,MAG8B;AAC9B,KACE,CAAC,MAAM,QAAQ,gBAAgB,IAC9B,CAAC,gBAAgB,MAAK,WAAU,MAAM,QAAQ,OAAO,CAAC,IACrD,gBAAgB,SAAS,KACzB,gBAAgB,SAAS,MACxB,YAAY,gBAAgB,GAAG,IAC9B,WAAW,gBAAgB,GAAG,IAC7B,gBAAgB,SAAS,KAAK,SAAS,gBAAgB,GAAG,IAC1D,gBAAgB,SAAS,KAAK,SAAS,gBAAgB,GAAG,EAE/D,QAAO,MAAM,QAAQ,gBAAgB,GACjC;EACE,gBAAgB;EAChB,gBAAgB,SAAS,IAAI,gBAAgB,KAAK,EAAE;EACpD,EACE,SAAS,MAAM,OACb,OAAO,MAAM,GAAG,KACf,gBAAgB,SAAS,KACxB,CAAC,WAAW,gBAAgB,GAAG,IAC/B,gBAAgB,KAAK,MAAM,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,5 +1,5 @@
|
|
|
1
|
-
import { c as BabelTransformPluginOptions, h as ResolvedBabelTransformPluginOptions, i as BabelTransformPlugin, s as BabelTransformPluginFilter } from "./config-
|
|
2
|
-
import { Context } from "@powerlines/core
|
|
1
|
+
import { c as BabelTransformPluginOptions, h as ResolvedBabelTransformPluginOptions, i as BabelTransformPlugin, s as BabelTransformPluginFilter } from "./config-CdGXI-Ik.cjs";
|
|
2
|
+
import { Context } from "@powerlines/core";
|
|
3
3
|
|
|
4
4
|
//#region src/helpers/filters.d.ts
|
|
5
5
|
declare function getPluginName(plugin?: BabelTransformPluginOptions | string | false | object | ((...args: any[]) => any) | undefined): string | undefined;
|
|
@@ -40,4 +40,4 @@ declare function addPluginFilter(context: Context, plugins: BabelTransformPlugin
|
|
|
40
40
|
declare function addPluginFilter(context: Context, plugin: BabelTransformPlugin | BabelTransformPluginOptions, filter: NonNullable<BabelTransformPluginFilter>): BabelTransformPluginOptions;
|
|
41
41
|
//#endregion
|
|
42
42
|
export { isDuplicatePlugin as i, filterPluginByFileId as n, getPluginName as r, addPluginFilter as t };
|
|
43
|
-
//# sourceMappingURL=filters-
|
|
43
|
+
//# sourceMappingURL=filters-DxhmCwwY.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filters-
|
|
1
|
+
{"version":3,"file":"filters-DxhmCwwY.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,3 +1,3 @@
|
|
|
1
|
-
import "../config-
|
|
2
|
-
import { t as createBabelPlugin } from "../create-plugin-
|
|
1
|
+
import "../config-CdGXI-Ik.cjs";
|
|
2
|
+
import { t as createBabelPlugin } from "../create-plugin-EhzG7u2c.cjs";
|
|
3
3
|
export { createBabelPlugin };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../config-
|
|
2
|
-
import { t as createBabelPlugin } from "../create-plugin-
|
|
1
|
+
import "../config-CB64op4Z.mjs";
|
|
2
|
+
import { t as createBabelPlugin } from "../create-plugin-DgPuOnKS.mjs";
|
|
3
3
|
export { createBabelPlugin };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../config-
|
|
2
|
-
import { i as isDuplicatePlugin, n as filterPluginByFileId, r as getPluginName, t as addPluginFilter } from "../filters-
|
|
1
|
+
import "../config-CdGXI-Ik.cjs";
|
|
2
|
+
import { i as isDuplicatePlugin, n as filterPluginByFileId, r as getPluginName, t as addPluginFilter } from "../filters-DxhmCwwY.cjs";
|
|
3
3
|
export { addPluginFilter, filterPluginByFileId, getPluginName, isDuplicatePlugin };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../config-
|
|
2
|
-
import { i as isDuplicatePlugin, n as filterPluginByFileId, r as getPluginName, t as addPluginFilter } from "../filters-
|
|
1
|
+
import "../config-CB64op4Z.mjs";
|
|
2
|
+
import { i as isDuplicatePlugin, n as filterPluginByFileId, r as getPluginName, t as addPluginFilter } from "../filters-D-MHf7r5.mjs";
|
|
3
3
|
export { addPluginFilter, filterPluginByFileId, getPluginName, isDuplicatePlugin };
|
package/dist/helpers/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as parseAst, i as generateFromAst, n as GeneratorResult, r as __ΩGenerateFromAstOptions, t as GenerateFromAstOptions } from "../ast-utils-BrOP-SXX.cjs";
|
|
2
|
-
import "../config-
|
|
3
|
-
import { t as createBabelPlugin } from "../create-plugin-
|
|
4
|
-
import { i as isDuplicatePlugin, n as filterPluginByFileId, r as getPluginName, t as addPluginFilter } from "../filters-
|
|
5
|
-
import { a as isImportCall, i as getImport, n as addImportsToProgram, o as listExports, r as findExport, s as listImports, t as addImport } from "../module-helpers-
|
|
6
|
-
import { n as resolvePluginFunction, t as resolveBabelPlugin } from "../options-
|
|
2
|
+
import "../config-CdGXI-Ik.cjs";
|
|
3
|
+
import { t as createBabelPlugin } from "../create-plugin-EhzG7u2c.cjs";
|
|
4
|
+
import { i as isDuplicatePlugin, n as filterPluginByFileId, r as getPluginName, t as addPluginFilter } from "../filters-DxhmCwwY.cjs";
|
|
5
|
+
import { a as isImportCall, i as getImport, n as addImportsToProgram, o as listExports, r as findExport, s as listImports, t as addImport } from "../module-helpers-UpBemakt.cjs";
|
|
6
|
+
import { n as resolvePluginFunction, t as resolveBabelPlugin } from "../options-DvKZh-FA.cjs";
|
|
7
7
|
import "../index-C2gUMYkE.cjs";
|
|
8
8
|
export { GenerateFromAstOptions, GeneratorResult, __ΩGenerateFromAstOptions, addImport, addImportsToProgram, addPluginFilter, createBabelPlugin, filterPluginByFileId, findExport, generateFromAst, getImport, getPluginName, isDuplicatePlugin, isImportCall, listExports, listImports, parseAst, resolveBabelPlugin, resolvePluginFunction };
|
package/dist/helpers/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as parseAst, i as generateFromAst, n as GeneratorResult, r as __ΩGenerateFromAstOptions, t as GenerateFromAstOptions } from "../ast-utils-c95WpQzC.mjs";
|
|
2
|
-
import "../config-
|
|
3
|
-
import { t as createBabelPlugin } from "../create-plugin-
|
|
4
|
-
import { i as isDuplicatePlugin, n as filterPluginByFileId, r as getPluginName, t as addPluginFilter } from "../filters-
|
|
5
|
-
import { a as isImportCall, i as getImport, n as addImportsToProgram, o as listExports, r as findExport, s as listImports, t as addImport } from "../module-helpers-
|
|
6
|
-
import { n as resolvePluginFunction, t as resolveBabelPlugin } from "../options-
|
|
2
|
+
import "../config-CB64op4Z.mjs";
|
|
3
|
+
import { t as createBabelPlugin } from "../create-plugin-DgPuOnKS.mjs";
|
|
4
|
+
import { i as isDuplicatePlugin, n as filterPluginByFileId, r as getPluginName, t as addPluginFilter } from "../filters-D-MHf7r5.mjs";
|
|
5
|
+
import { a as isImportCall, i as getImport, n as addImportsToProgram, o as listExports, r as findExport, s as listImports, t as addImport } from "../module-helpers-B5Q7eI_S.mjs";
|
|
6
|
+
import { n as resolvePluginFunction, t as resolveBabelPlugin } from "../options-BRFTG1Mg.mjs";
|
|
7
7
|
import "../index-OEBbnNdr.mjs";
|
|
8
8
|
export { GenerateFromAstOptions, GeneratorResult, __ΩGenerateFromAstOptions, addImport, addImportsToProgram, addPluginFilter, createBabelPlugin, filterPluginByFileId, findExport, generateFromAst, getImport, getPluginName, isDuplicatePlugin, isImportCall, listExports, listImports, parseAst, resolveBabelPlugin, resolvePluginFunction };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../config-
|
|
2
|
-
import { a as isImportCall, i as getImport, n as addImportsToProgram, o as listExports, r as findExport, s as listImports, t as addImport } from "../module-helpers-
|
|
1
|
+
import "../config-CdGXI-Ik.cjs";
|
|
2
|
+
import { a as isImportCall, i as getImport, n as addImportsToProgram, o as listExports, r as findExport, s as listImports, t as addImport } from "../module-helpers-UpBemakt.cjs";
|
|
3
3
|
export { addImport, addImportsToProgram, findExport, getImport, isImportCall, listExports, listImports };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../config-
|
|
2
|
-
import { a as isImportCall, i as getImport, n as addImportsToProgram, o as listExports, r as findExport, s as listImports, t as addImport } from "../module-helpers-
|
|
1
|
+
import "../config-CB64op4Z.mjs";
|
|
2
|
+
import { a as isImportCall, i as getImport, n as addImportsToProgram, o as listExports, r as findExport, s as listImports, t as addImport } from "../module-helpers-B5Q7eI_S.mjs";
|
|
3
3
|
export { addImport, addImportsToProgram, findExport, getImport, isImportCall, listExports, listImports };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../config-
|
|
2
|
-
import { n as resolvePluginFunction, t as resolveBabelPlugin } from "../options-
|
|
1
|
+
import "../config-CdGXI-Ik.cjs";
|
|
2
|
+
import { n as resolvePluginFunction, t as resolveBabelPlugin } from "../options-DvKZh-FA.cjs";
|
|
3
3
|
export { resolveBabelPlugin, resolvePluginFunction };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../config-
|
|
2
|
-
import { n as resolvePluginFunction, t as resolveBabelPlugin } from "../options-
|
|
1
|
+
import "../config-CB64op4Z.mjs";
|
|
2
|
+
import { n as resolvePluginFunction, t as resolveBabelPlugin } from "../options-BRFTG1Mg.mjs";
|
|
3
3
|
export { resolveBabelPlugin, resolvePluginFunction };
|
package/dist/index.d.cts
CHANGED
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
import { a as parseAst, i as generateFromAst, n as GeneratorResult, r as __ΩGenerateFromAstOptions, t as GenerateFromAstOptions } from "./ast-utils-BrOP-SXX.cjs";
|
|
2
|
-
import { A as __ΩResolvedBabelTransformPluginOptions, C as __ΩBabelTransformPluginOptions, D as __ΩImportDefinition, E as __ΩDefaultImportDefinition, O as __ΩImportSpecifier, S as __ΩBabelTransformPluginFilter, T as __ΩDeclareBabelTransformPluginReturn, _ as __ΩBabelResolvedConfig, a as BabelTransformPluginBuilder, b as __ΩBabelTransformPluginBuilder, c as BabelTransformPluginOptions, d as DefaultImportDefinition, f as ImportDefinition, g as __ΩBabelPluginPass, h as ResolvedBabelTransformPluginOptions, i as BabelTransformPlugin, k as __ΩNamedImportDefinition, l as BabelUserConfig, m as NamedImportDefinition, n as BabelResolvedConfig, o as BabelTransformPluginBuilderParams, p as ImportSpecifier, r as BabelTransformInput, s as BabelTransformPluginFilter, t as BabelPluginPass, u as DeclareBabelTransformPluginReturn, v as __ΩBabelTransformInput, w as __ΩBabelUserConfig, x as __ΩBabelTransformPluginBuilderParams, y as __ΩBabelTransformPlugin } from "./config-
|
|
3
|
-
import { t as createBabelPlugin } from "./create-plugin-
|
|
4
|
-
import { i as isDuplicatePlugin, n as filterPluginByFileId, r as getPluginName, t as addPluginFilter } from "./filters-
|
|
5
|
-
import { a as isImportCall, i as getImport, n as addImportsToProgram, o as listExports, r as findExport, s as listImports, t as addImport } from "./module-helpers-
|
|
6
|
-
import { n as resolvePluginFunction, t as resolveBabelPlugin } from "./options-
|
|
2
|
+
import { A as __ΩResolvedBabelTransformPluginOptions, C as __ΩBabelTransformPluginOptions, D as __ΩImportDefinition, E as __ΩDefaultImportDefinition, O as __ΩImportSpecifier, S as __ΩBabelTransformPluginFilter, T as __ΩDeclareBabelTransformPluginReturn, _ as __ΩBabelResolvedConfig, a as BabelTransformPluginBuilder, b as __ΩBabelTransformPluginBuilder, c as BabelTransformPluginOptions, d as DefaultImportDefinition, f as ImportDefinition, g as __ΩBabelPluginPass, h as ResolvedBabelTransformPluginOptions, i as BabelTransformPlugin, k as __ΩNamedImportDefinition, l as BabelUserConfig, m as NamedImportDefinition, n as BabelResolvedConfig, o as BabelTransformPluginBuilderParams, p as ImportSpecifier, r as BabelTransformInput, s as BabelTransformPluginFilter, t as BabelPluginPass, u as DeclareBabelTransformPluginReturn, v as __ΩBabelTransformInput, w as __ΩBabelUserConfig, x as __ΩBabelTransformPluginBuilderParams, y as __ΩBabelTransformPlugin } from "./config-CdGXI-Ik.cjs";
|
|
3
|
+
import { t as createBabelPlugin } from "./create-plugin-EhzG7u2c.cjs";
|
|
4
|
+
import { i as isDuplicatePlugin, n as filterPluginByFileId, r as getPluginName, t as addPluginFilter } from "./filters-DxhmCwwY.cjs";
|
|
5
|
+
import { a as isImportCall, i as getImport, n as addImportsToProgram, o as listExports, r as findExport, s as listImports, t as addImport } from "./module-helpers-UpBemakt.cjs";
|
|
6
|
+
import { n as resolvePluginFunction, t as resolveBabelPlugin } from "./options-DvKZh-FA.cjs";
|
|
7
7
|
import "./index-C2gUMYkE.cjs";
|
|
8
|
-
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-
|
|
8
|
+
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-F6ospfOM.cjs";
|
|
9
9
|
import "./index-uTS5iDq_.cjs";
|
|
10
|
-
import { Plugin } from "@powerlines/core
|
|
10
|
+
import { Plugin } from "@powerlines/core";
|
|
11
11
|
|
|
12
12
|
//#region src/index.d.ts
|
|
13
|
+
declare module "@powerlines/core" {
|
|
14
|
+
interface BaseConfig {
|
|
15
|
+
babel?: BabelPluginOptions;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
13
18
|
/**
|
|
14
19
|
* Babel plugin for Powerlines.
|
|
15
20
|
*
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;YAqCY;;;;;;AAJY;;;AAIM,cAUjB,MAViB,EAAA,CAAA,iBAWX,kBAXW,GAWU,kBAXV,CAAA,CAAA,OAAA,CAAA,EAanB,kBAbmB,EAAA,GAc3B,MAd2B,CAcpB,QAdoB,CAAA"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
import { a as parseAst, i as generateFromAst, n as GeneratorResult, r as __ΩGenerateFromAstOptions, t as GenerateFromAstOptions } from "./ast-utils-c95WpQzC.mjs";
|
|
2
|
-
import { A as __ΩResolvedBabelTransformPluginOptions, C as __ΩBabelTransformPluginOptions, D as __ΩImportDefinition, E as __ΩDefaultImportDefinition, O as __ΩImportSpecifier, S as __ΩBabelTransformPluginFilter, T as __ΩDeclareBabelTransformPluginReturn, _ as __ΩBabelResolvedConfig, a as BabelTransformPluginBuilder, b as __ΩBabelTransformPluginBuilder, c as BabelTransformPluginOptions, d as DefaultImportDefinition, f as ImportDefinition, g as __ΩBabelPluginPass, h as ResolvedBabelTransformPluginOptions, i as BabelTransformPlugin, k as __ΩNamedImportDefinition, l as BabelUserConfig, m as NamedImportDefinition, n as BabelResolvedConfig, o as BabelTransformPluginBuilderParams, p as ImportSpecifier, r as BabelTransformInput, s as BabelTransformPluginFilter, t as BabelPluginPass, u as DeclareBabelTransformPluginReturn, v as __ΩBabelTransformInput, w as __ΩBabelUserConfig, x as __ΩBabelTransformPluginBuilderParams, y as __ΩBabelTransformPlugin } from "./config-
|
|
3
|
-
import { t as createBabelPlugin } from "./create-plugin-
|
|
4
|
-
import { i as isDuplicatePlugin, n as filterPluginByFileId, r as getPluginName, t as addPluginFilter } from "./filters-
|
|
5
|
-
import { a as isImportCall, i as getImport, n as addImportsToProgram, o as listExports, r as findExport, s as listImports, t as addImport } from "./module-helpers-
|
|
6
|
-
import { n as resolvePluginFunction, t as resolveBabelPlugin } from "./options-
|
|
2
|
+
import { A as __ΩResolvedBabelTransformPluginOptions, C as __ΩBabelTransformPluginOptions, D as __ΩImportDefinition, E as __ΩDefaultImportDefinition, O as __ΩImportSpecifier, S as __ΩBabelTransformPluginFilter, T as __ΩDeclareBabelTransformPluginReturn, _ as __ΩBabelResolvedConfig, a as BabelTransformPluginBuilder, b as __ΩBabelTransformPluginBuilder, c as BabelTransformPluginOptions, d as DefaultImportDefinition, f as ImportDefinition, g as __ΩBabelPluginPass, h as ResolvedBabelTransformPluginOptions, i as BabelTransformPlugin, k as __ΩNamedImportDefinition, l as BabelUserConfig, m as NamedImportDefinition, n as BabelResolvedConfig, o as BabelTransformPluginBuilderParams, p as ImportSpecifier, r as BabelTransformInput, s as BabelTransformPluginFilter, t as BabelPluginPass, u as DeclareBabelTransformPluginReturn, v as __ΩBabelTransformInput, w as __ΩBabelUserConfig, x as __ΩBabelTransformPluginBuilderParams, y as __ΩBabelTransformPlugin } from "./config-CB64op4Z.mjs";
|
|
3
|
+
import { t as createBabelPlugin } from "./create-plugin-DgPuOnKS.mjs";
|
|
4
|
+
import { i as isDuplicatePlugin, n as filterPluginByFileId, r as getPluginName, t as addPluginFilter } from "./filters-D-MHf7r5.mjs";
|
|
5
|
+
import { a as isImportCall, i as getImport, n as addImportsToProgram, o as listExports, r as findExport, s as listImports, t as addImport } from "./module-helpers-B5Q7eI_S.mjs";
|
|
6
|
+
import { n as resolvePluginFunction, t as resolveBabelPlugin } from "./options-BRFTG1Mg.mjs";
|
|
7
7
|
import "./index-OEBbnNdr.mjs";
|
|
8
|
-
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-
|
|
8
|
+
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-gAUFMAXK.mjs";
|
|
9
9
|
import "./index-D8dPsry7.mjs";
|
|
10
|
-
import { Plugin } from "@powerlines/core
|
|
10
|
+
import { Plugin } from "@powerlines/core";
|
|
11
11
|
|
|
12
12
|
//#region src/index.d.ts
|
|
13
|
+
declare module "@powerlines/core" {
|
|
14
|
+
interface BaseConfig {
|
|
15
|
+
babel?: BabelPluginOptions;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
13
18
|
/**
|
|
14
19
|
* Babel plugin for Powerlines.
|
|
15
20
|
*
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;YAqCY;;;;;;AAJY;;;AAIM,cAUjB,MAViB,EAAA,CAAA,iBAWX,kBAXW,GAWU,kBAXV,CAAA,CAAA,OAAA,CAAA,EAanB,kBAbmB,EAAA,GAc3B,MAd2B,CAcpB,QAdoB,CAAA"}
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["plugin"],"sources":["../src/index.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 { transformAsync } from \"@babel/core\";\nimport type { Plugin } from \"@powerlines/core
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["plugin"],"sources":["../src/index.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 { transformAsync } from \"@babel/core\";\nimport type { Plugin } from \"@powerlines/core\";\nimport {\n findFileExtension,\n findFileExtensionSafe\n} from \"@stryke/path/file-path-fns\";\nimport { isParentPath } from \"@stryke/path/is-parent-path\";\nimport { isSetObject } from \"@stryke/type-checks/is-set-object\";\nimport defu from \"defu\";\nimport { isDuplicatePlugin } from \"./helpers/filters\";\nimport { resolveBabelPlugin } from \"./helpers/options\";\nimport { ResolvedBabelTransformPluginOptions } from \"./types/config\";\nimport { BabelPluginContext, BabelPluginOptions } from \"./types/plugin\";\n\nexport * from \"./helpers\";\nexport * from \"./types\";\n\ndeclare module \"@powerlines/core\" {\n interface BaseConfig {\n babel?: BabelPluginOptions;\n }\n}\n\n/**\n * Babel plugin for Powerlines.\n *\n * @param options - The Babel plugin user configuration options.\n * @returns A Powerlines plugin that integrates Babel transformations.\n */\nexport const plugin = <\n TContext extends BabelPluginContext = BabelPluginContext\n>(\n options: BabelPluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"babel\",\n config() {\n if (!isSetObject(options)) {\n return undefined;\n }\n\n return {\n babel: options\n };\n },\n configResolved: {\n order: \"pre\",\n handler() {\n this.config.babel = defu(this.config.babel ?? {}, {\n plugins: [],\n presets: []\n });\n }\n },\n async transform(code: string, id: string) {\n if (\n isParentPath(id, this.powerlinesPath) ||\n code.includes(\"/* @powerlines-ignore */\") ||\n code.includes(\"/* @powerlines-disable */\")\n ) {\n this.trace(`Skipping Babel transformation for: ${id}`);\n\n return { code, id };\n }\n\n const plugins = this.config.babel.plugins\n .map(plugin => resolveBabelPlugin(this, code, id, plugin))\n .filter(\n (plugin, _, arr) => plugin && !isDuplicatePlugin(arr, plugin)\n ) as ResolvedBabelTransformPluginOptions[];\n const presets = this.config.babel.presets\n .map(preset => resolveBabelPlugin(this, code, id, preset))\n .filter(\n (preset, _, arr) => preset && !isDuplicatePlugin(arr, preset)\n ) as ResolvedBabelTransformPluginOptions[];\n\n if (\n Array.isArray(plugins) &&\n plugins.length === 0 &&\n Array.isArray(presets) &&\n presets.length === 0\n ) {\n return { code, id };\n }\n\n if (\n /^(?:m|c)?tsx?$/.test(\n findFileExtensionSafe(id, {\n fullExtension: true\n })\n ) &&\n !isDuplicatePlugin(plugins, \"@babel/plugin-syntax-typescript\") &&\n !isDuplicatePlugin(presets, \"@babel/preset-typescript\")\n ) {\n plugins.unshift([\n \"@babel/plugin-syntax-typescript\",\n { isTSX: findFileExtension(id) === \"tsx\" }\n ]);\n }\n\n this.trace(\n `Running babel transformations with ${plugins.length} plugins and ${\n presets.length\n } presets for file: ${id}`\n );\n\n const result = await transformAsync(code, {\n highlightCode: true,\n code: true,\n ast: false,\n cloneInputAst: false,\n comments: true,\n sourceType: \"module\",\n configFile: false,\n babelrc: false,\n envName: this.config.mode,\n caller: {\n name: this.config.framework\n },\n ...(this.config.babel ?? {}),\n filename: id,\n plugins: plugins\n .map(plugin => {\n return Array.isArray(plugin) && plugin.length >= 2\n ? [\n plugin[0],\n defu(plugin.length > 1 && plugin[1] ? plugin[1] : {}, {\n options\n })\n ]\n : plugin;\n })\n .filter(Boolean),\n presets: presets\n .map(preset => {\n return Array.isArray(preset) && preset.length >= 2\n ? [\n preset[0],\n defu(preset.length > 1 && preset[1] ? preset[1] : {}, {\n options\n })\n ]\n : preset;\n })\n .filter(Boolean)\n });\n if (!result?.code) {\n throw new Error(`Powerlines - Babel plugin failed to compile ${id}`);\n }\n\n this.trace(`Completed babel transformations for file: ${id}`);\n\n return { code: result.code, id };\n }\n } as Plugin<TContext>;\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AA+CA,MAAa,UAGX,UAA8B,EAAE,KACX;AACrB,QAAO;EACL,MAAM;EACN,SAAS;AACP,OAAI,CAAC,YAAY,QAAQ,CACvB;AAGF,UAAO,EACL,OAAO,SACR;;EAEH,gBAAgB;GACd,OAAO;GACP,UAAU;AACR,SAAK,OAAO,QAAQ,KAAK,KAAK,OAAO,SAAS,EAAE,EAAE;KAChD,SAAS,EAAE;KACX,SAAS,EAAE;KACZ,CAAC;;GAEL;EACD,MAAM,UAAU,MAAc,IAAY;AACxC,OACE,aAAa,IAAI,KAAK,eAAe,IACrC,KAAK,SAAS,2BAA2B,IACzC,KAAK,SAAS,4BAA4B,EAC1C;AACA,SAAK,MAAM,sCAAsC,KAAK;AAEtD,WAAO;KAAE;KAAM;KAAI;;GAGrB,MAAM,UAAU,KAAK,OAAO,MAAM,QAC/B,KAAI,aAAU,mBAAmB,MAAM,MAAM,IAAIA,SAAO,CAAC,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AAK,OAAO,KAAK,OAAO,KAAK,EAAE,EAAE,EACpD,SACD,CAAC,CACH,GACD;MACJ,CACD,OAAO,QAAQ;IACnB,CAAC;AACF,OAAI,CAAC,QAAQ,KACX,OAAM,IAAI,MAAM,+CAA+C,KAAK;AAGtE,QAAK,MAAM,6CAA6C,KAAK;AAE7D,UAAO;IAAE,MAAM,OAAO;IAAM;IAAI;;EAEnC;;AAGH,kBAAe"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as ImportSpecifier } from "./config-
|
|
1
|
+
import { p as ImportSpecifier } from "./config-CB64op4Z.mjs";
|
|
2
2
|
import { NodePath } from "@babel/core";
|
|
3
3
|
import { ParseResult } from "@babel/parser";
|
|
4
4
|
import * as t from "@babel/types";
|
|
@@ -47,4 +47,4 @@ declare function addImport(path: NodePath<any>, specifier: ImportSpecifier): voi
|
|
|
47
47
|
declare function addImportsToProgram(path: NodePath<t.Program>, specifier: ImportSpecifier): void;
|
|
48
48
|
//#endregion
|
|
49
49
|
export { isImportCall as a, getImport as i, addImportsToProgram as n, listExports as o, findExport as r, listImports as s, addImport as t };
|
|
50
|
-
//# sourceMappingURL=module-helpers-
|
|
50
|
+
//# sourceMappingURL=module-helpers-B5Q7eI_S.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module-helpers-
|
|
1
|
+
{"version":3,"file":"module-helpers-B5Q7eI_S.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,4 +1,4 @@
|
|
|
1
|
-
import { p as ImportSpecifier } from "./config-
|
|
1
|
+
import { p as ImportSpecifier } from "./config-CdGXI-Ik.cjs";
|
|
2
2
|
import { ParseResult } from "@babel/parser";
|
|
3
3
|
import * as t from "@babel/types";
|
|
4
4
|
import { NodePath } from "@babel/core";
|
|
@@ -47,4 +47,4 @@ declare function addImport(path: NodePath<any>, specifier: ImportSpecifier): voi
|
|
|
47
47
|
declare function addImportsToProgram(path: NodePath<t.Program>, specifier: ImportSpecifier): void;
|
|
48
48
|
//#endregion
|
|
49
49
|
export { isImportCall as a, getImport as i, addImportsToProgram as n, listExports as o, findExport as r, listImports as s, addImport as t };
|
|
50
|
-
//# sourceMappingURL=module-helpers-
|
|
50
|
+
//# sourceMappingURL=module-helpers-UpBemakt.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module-helpers-
|
|
1
|
+
{"version":3,"file":"module-helpers-UpBemakt.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,6 +1,6 @@
|
|
|
1
|
-
import { c as BabelTransformPluginOptions, h as ResolvedBabelTransformPluginOptions } from "./config-
|
|
2
|
-
import { Context } from "@powerlines/core/types";
|
|
1
|
+
import { c as BabelTransformPluginOptions, h as ResolvedBabelTransformPluginOptions } from "./config-CB64op4Z.mjs";
|
|
3
2
|
import { PluginOptions, PluginTarget } from "@babel/core";
|
|
3
|
+
import { Context } from "@powerlines/core";
|
|
4
4
|
|
|
5
5
|
//#region src/helpers/options.d.ts
|
|
6
6
|
declare function resolvePluginFunction(context: Context, plugin: any | PluginTarget | any[] | [PluginTarget, PluginOptions] | [PluginTarget, PluginOptions, string | undefined]): BabelTransformPluginOptions;
|
|
@@ -16,4 +16,4 @@ declare function resolvePluginFunction(context: Context, plugin: any | PluginTar
|
|
|
16
16
|
declare function resolveBabelPlugin(context: Context, code: string, id: string, plugin: BabelTransformPluginOptions): ResolvedBabelTransformPluginOptions | undefined;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { resolvePluginFunction as n, resolveBabelPlugin as t };
|
|
19
|
-
//# sourceMappingURL=options-
|
|
19
|
+
//# sourceMappingURL=options-BRFTG1Mg.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options-
|
|
1
|
+
{"version":3,"file":"options-BRFTG1Mg.d.mts","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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options-DT_wvMGu.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
|
|
1
|
+
{"version":3,"file":"options-DT_wvMGu.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\";\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,6 +1,6 @@
|
|
|
1
|
-
import { c as BabelTransformPluginOptions, h as ResolvedBabelTransformPluginOptions } from "./config-
|
|
1
|
+
import { c as BabelTransformPluginOptions, h as ResolvedBabelTransformPluginOptions } from "./config-CdGXI-Ik.cjs";
|
|
2
|
+
import { Context } from "@powerlines/core";
|
|
2
3
|
import { PluginOptions, PluginTarget } from "@babel/core";
|
|
3
|
-
import { Context } from "@powerlines/core/types";
|
|
4
4
|
|
|
5
5
|
//#region src/helpers/options.d.ts
|
|
6
6
|
declare function resolvePluginFunction(context: Context, plugin: any | PluginTarget | any[] | [PluginTarget, PluginOptions] | [PluginTarget, PluginOptions, string | undefined]): BabelTransformPluginOptions;
|
|
@@ -16,4 +16,4 @@ declare function resolvePluginFunction(context: Context, plugin: any | PluginTar
|
|
|
16
16
|
declare function resolveBabelPlugin(context: Context, code: string, id: string, plugin: BabelTransformPluginOptions): ResolvedBabelTransformPluginOptions | undefined;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { resolvePluginFunction as n, resolveBabelPlugin as t };
|
|
19
|
-
//# sourceMappingURL=options-
|
|
19
|
+
//# sourceMappingURL=options-DvKZh-FA.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options-
|
|
1
|
+
{"version":3,"file":"options-DvKZh-FA.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,5 +1,5 @@
|
|
|
1
|
-
import { l as BabelUserConfig, n as BabelResolvedConfig } from "./config-
|
|
2
|
-
import { PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core
|
|
1
|
+
import { l as BabelUserConfig, n as BabelResolvedConfig } from "./config-CdGXI-Ik.cjs";
|
|
2
|
+
import { PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core";
|
|
3
3
|
|
|
4
4
|
//#region src/types/plugin.d.ts
|
|
5
5
|
type BabelPluginOptions = Partial<BabelUserConfig>;
|
|
@@ -16,4 +16,4 @@ declare type __ΩBabelPluginResolvedConfig = any[];
|
|
|
16
16
|
declare type __ΩBabelPluginContext = any[];
|
|
17
17
|
//#endregion
|
|
18
18
|
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 };
|
|
19
|
-
//# sourceMappingURL=plugin-
|
|
19
|
+
//# sourceMappingURL=plugin-F6ospfOM.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-
|
|
1
|
+
{"version":3,"file":"plugin-F6ospfOM.d.cts","names":[],"sources":["../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;KAyBY,kBAAA,GAAqB,QAAQ;KAE7B,qBAAA,GAAwB;EAFxB,KAAA,CAAA,EAGF,kBAHoB;AAE9B,CAAA;AAIiB,UAAA,yBAAA,SAAkC,cAAA,CAAA;EAIvC,KAAA,EAHH,mBAGqB;;AACwB,KAD1C,kBAC0C,CAAA,wBAA5B,yBAA4B,GAAA,yBAAA,CAAA,GAClD,aADkD,CACpC,eADoC,CAAA;AACpC,qCAAA,GAAA,EAAA;AAAd,wCAAA,GAAA,EAAA;AAAa,4CAAA,GAAA,EAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { l as BabelUserConfig, n as BabelResolvedConfig } from "./config-
|
|
2
|
-
import { PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core
|
|
1
|
+
import { l as BabelUserConfig, n as BabelResolvedConfig } from "./config-CB64op4Z.mjs";
|
|
2
|
+
import { PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core";
|
|
3
3
|
|
|
4
4
|
//#region src/types/plugin.d.ts
|
|
5
5
|
type BabelPluginOptions = Partial<BabelUserConfig>;
|
|
@@ -16,4 +16,4 @@ declare type __ΩBabelPluginResolvedConfig = any[];
|
|
|
16
16
|
declare type __ΩBabelPluginContext = any[];
|
|
17
17
|
//#endregion
|
|
18
18
|
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 };
|
|
19
|
-
//# sourceMappingURL=plugin-
|
|
19
|
+
//# sourceMappingURL=plugin-gAUFMAXK.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-
|
|
1
|
+
{"version":3,"file":"plugin-gAUFMAXK.d.mts","names":[],"sources":["../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;KAyBY,kBAAA,GAAqB,QAAQ;KAE7B,qBAAA,GAAwB;EAFxB,KAAA,CAAA,EAGF,kBAHoB;AAE9B,CAAA;AAIiB,UAAA,yBAAA,SAAkC,cAAA,CAAA;EAIvC,KAAA,EAHH,mBAGqB;;AACwB,KAD1C,kBAC0C,CAAA,wBAA5B,yBAA4B,GAAA,yBAAA,CAAA,GAClD,aADkD,CACpC,eADoC,CAAA;AACpC,qCAAA,GAAA,EAAA;AAAd,wCAAA,GAAA,EAAA;AAAa,4CAAA,GAAA,EAAA"}
|
package/dist/types/config.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as __ΩResolvedBabelTransformPluginOptions, C as __ΩBabelTransformPluginOptions, D as __ΩImportDefinition, E as __ΩDefaultImportDefinition, O as __ΩImportSpecifier, S as __ΩBabelTransformPluginFilter, T as __ΩDeclareBabelTransformPluginReturn, _ as __ΩBabelResolvedConfig, a as BabelTransformPluginBuilder, b as __ΩBabelTransformPluginBuilder, c as BabelTransformPluginOptions, d as DefaultImportDefinition, f as ImportDefinition, g as __ΩBabelPluginPass, h as ResolvedBabelTransformPluginOptions, i as BabelTransformPlugin, k as __ΩNamedImportDefinition, l as BabelUserConfig, m as NamedImportDefinition, n as BabelResolvedConfig, o as BabelTransformPluginBuilderParams, p as ImportSpecifier, r as BabelTransformInput, s as BabelTransformPluginFilter, t as BabelPluginPass, u as DeclareBabelTransformPluginReturn, v as __ΩBabelTransformInput, w as __ΩBabelUserConfig, x as __ΩBabelTransformPluginBuilderParams, y as __ΩBabelTransformPlugin } from "../config-
|
|
1
|
+
import { A as __ΩResolvedBabelTransformPluginOptions, C as __ΩBabelTransformPluginOptions, D as __ΩImportDefinition, E as __ΩDefaultImportDefinition, O as __ΩImportSpecifier, S as __ΩBabelTransformPluginFilter, T as __ΩDeclareBabelTransformPluginReturn, _ as __ΩBabelResolvedConfig, a as BabelTransformPluginBuilder, b as __ΩBabelTransformPluginBuilder, c as BabelTransformPluginOptions, d as DefaultImportDefinition, f as ImportDefinition, g as __ΩBabelPluginPass, h as ResolvedBabelTransformPluginOptions, i as BabelTransformPlugin, k as __ΩNamedImportDefinition, l as BabelUserConfig, m as NamedImportDefinition, n as BabelResolvedConfig, o as BabelTransformPluginBuilderParams, p as ImportSpecifier, r as BabelTransformInput, s as BabelTransformPluginFilter, t as BabelPluginPass, u as DeclareBabelTransformPluginReturn, v as __ΩBabelTransformInput, w as __ΩBabelUserConfig, x as __ΩBabelTransformPluginBuilderParams, y as __ΩBabelTransformPlugin } from "../config-CdGXI-Ik.cjs";
|
|
2
2
|
export { BabelPluginPass, BabelResolvedConfig, BabelTransformInput, BabelTransformPlugin, BabelTransformPluginBuilder, BabelTransformPluginBuilderParams, BabelTransformPluginFilter, BabelTransformPluginOptions, BabelUserConfig, DeclareBabelTransformPluginReturn, DefaultImportDefinition, ImportDefinition, ImportSpecifier, NamedImportDefinition, ResolvedBabelTransformPluginOptions, __ΩBabelPluginPass, __ΩBabelResolvedConfig, __ΩBabelTransformInput, __ΩBabelTransformPlugin, __ΩBabelTransformPluginBuilder, __ΩBabelTransformPluginBuilderParams, __ΩBabelTransformPluginFilter, __ΩBabelTransformPluginOptions, __ΩBabelUserConfig, __ΩDeclareBabelTransformPluginReturn, __ΩDefaultImportDefinition, __ΩImportDefinition, __ΩImportSpecifier, __ΩNamedImportDefinition, __ΩResolvedBabelTransformPluginOptions };
|
package/dist/types/config.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as __ΩResolvedBabelTransformPluginOptions, C as __ΩBabelTransformPluginOptions, D as __ΩImportDefinition, E as __ΩDefaultImportDefinition, O as __ΩImportSpecifier, S as __ΩBabelTransformPluginFilter, T as __ΩDeclareBabelTransformPluginReturn, _ as __ΩBabelResolvedConfig, a as BabelTransformPluginBuilder, b as __ΩBabelTransformPluginBuilder, c as BabelTransformPluginOptions, d as DefaultImportDefinition, f as ImportDefinition, g as __ΩBabelPluginPass, h as ResolvedBabelTransformPluginOptions, i as BabelTransformPlugin, k as __ΩNamedImportDefinition, l as BabelUserConfig, m as NamedImportDefinition, n as BabelResolvedConfig, o as BabelTransformPluginBuilderParams, p as ImportSpecifier, r as BabelTransformInput, s as BabelTransformPluginFilter, t as BabelPluginPass, u as DeclareBabelTransformPluginReturn, v as __ΩBabelTransformInput, w as __ΩBabelUserConfig, x as __ΩBabelTransformPluginBuilderParams, y as __ΩBabelTransformPlugin } from "../config-
|
|
1
|
+
import { A as __ΩResolvedBabelTransformPluginOptions, C as __ΩBabelTransformPluginOptions, D as __ΩImportDefinition, E as __ΩDefaultImportDefinition, O as __ΩImportSpecifier, S as __ΩBabelTransformPluginFilter, T as __ΩDeclareBabelTransformPluginReturn, _ as __ΩBabelResolvedConfig, a as BabelTransformPluginBuilder, b as __ΩBabelTransformPluginBuilder, c as BabelTransformPluginOptions, d as DefaultImportDefinition, f as ImportDefinition, g as __ΩBabelPluginPass, h as ResolvedBabelTransformPluginOptions, i as BabelTransformPlugin, k as __ΩNamedImportDefinition, l as BabelUserConfig, m as NamedImportDefinition, n as BabelResolvedConfig, o as BabelTransformPluginBuilderParams, p as ImportSpecifier, r as BabelTransformInput, s as BabelTransformPluginFilter, t as BabelPluginPass, u as DeclareBabelTransformPluginReturn, v as __ΩBabelTransformInput, w as __ΩBabelUserConfig, x as __ΩBabelTransformPluginBuilderParams, y as __ΩBabelTransformPlugin } from "../config-CB64op4Z.mjs";
|
|
2
2
|
export { BabelPluginPass, BabelResolvedConfig, BabelTransformInput, BabelTransformPlugin, BabelTransformPluginBuilder, BabelTransformPluginBuilderParams, BabelTransformPluginFilter, BabelTransformPluginOptions, BabelUserConfig, DeclareBabelTransformPluginReturn, DefaultImportDefinition, ImportDefinition, ImportSpecifier, NamedImportDefinition, ResolvedBabelTransformPluginOptions, __ΩBabelPluginPass, __ΩBabelResolvedConfig, __ΩBabelTransformInput, __ΩBabelTransformPlugin, __ΩBabelTransformPluginBuilder, __ΩBabelTransformPluginBuilderParams, __ΩBabelTransformPluginFilter, __ΩBabelTransformPluginOptions, __ΩBabelUserConfig, __ΩDeclareBabelTransformPluginReturn, __ΩDefaultImportDefinition, __ΩImportDefinition, __ΩImportSpecifier, __ΩNamedImportDefinition, __ΩResolvedBabelTransformPluginOptions };
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as __ΩResolvedBabelTransformPluginOptions, C as __ΩBabelTransformPluginOptions, D as __ΩImportDefinition, E as __ΩDefaultImportDefinition, O as __ΩImportSpecifier, S as __ΩBabelTransformPluginFilter, T as __ΩDeclareBabelTransformPluginReturn, _ as __ΩBabelResolvedConfig, a as BabelTransformPluginBuilder, b as __ΩBabelTransformPluginBuilder, c as BabelTransformPluginOptions, d as DefaultImportDefinition, f as ImportDefinition, g as __ΩBabelPluginPass, h as ResolvedBabelTransformPluginOptions, i as BabelTransformPlugin, k as __ΩNamedImportDefinition, l as BabelUserConfig, m as NamedImportDefinition, n as BabelResolvedConfig, o as BabelTransformPluginBuilderParams, p as ImportSpecifier, r as BabelTransformInput, s as BabelTransformPluginFilter, t as BabelPluginPass, u as DeclareBabelTransformPluginReturn, v as __ΩBabelTransformInput, w as __ΩBabelUserConfig, x as __ΩBabelTransformPluginBuilderParams, y as __ΩBabelTransformPlugin } from "../config-
|
|
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-
|
|
1
|
+
import { A as __ΩResolvedBabelTransformPluginOptions, C as __ΩBabelTransformPluginOptions, D as __ΩImportDefinition, E as __ΩDefaultImportDefinition, O as __ΩImportSpecifier, S as __ΩBabelTransformPluginFilter, T as __ΩDeclareBabelTransformPluginReturn, _ as __ΩBabelResolvedConfig, a as BabelTransformPluginBuilder, b as __ΩBabelTransformPluginBuilder, c as BabelTransformPluginOptions, d as DefaultImportDefinition, f as ImportDefinition, g as __ΩBabelPluginPass, h as ResolvedBabelTransformPluginOptions, i as BabelTransformPlugin, k as __ΩNamedImportDefinition, l as BabelUserConfig, m as NamedImportDefinition, n as BabelResolvedConfig, o as BabelTransformPluginBuilderParams, p as ImportSpecifier, r as BabelTransformInput, s as BabelTransformPluginFilter, t as BabelPluginPass, u as DeclareBabelTransformPluginReturn, v as __ΩBabelTransformInput, w as __ΩBabelUserConfig, x as __ΩBabelTransformPluginBuilderParams, y as __ΩBabelTransformPlugin } from "../config-CdGXI-Ik.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-F6ospfOM.cjs";
|
|
3
3
|
import "../index-uTS5iDq_.cjs";
|
|
4
4
|
export { BabelPluginContext, BabelPluginOptions, BabelPluginPass, BabelPluginResolvedConfig, BabelPluginUserConfig, BabelResolvedConfig, BabelTransformInput, BabelTransformPlugin, BabelTransformPluginBuilder, BabelTransformPluginBuilderParams, BabelTransformPluginFilter, BabelTransformPluginOptions, BabelUserConfig, DeclareBabelTransformPluginReturn, DefaultImportDefinition, ImportDefinition, ImportSpecifier, NamedImportDefinition, ResolvedBabelTransformPluginOptions, __ΩBabelPluginContext, __ΩBabelPluginOptions, __ΩBabelPluginPass, __ΩBabelPluginResolvedConfig, __ΩBabelPluginUserConfig, __ΩBabelResolvedConfig, __ΩBabelTransformInput, __ΩBabelTransformPlugin, __ΩBabelTransformPluginBuilder, __ΩBabelTransformPluginBuilderParams, __ΩBabelTransformPluginFilter, __ΩBabelTransformPluginOptions, __ΩBabelUserConfig, __ΩDeclareBabelTransformPluginReturn, __ΩDefaultImportDefinition, __ΩImportDefinition, __ΩImportSpecifier, __ΩNamedImportDefinition, __ΩResolvedBabelTransformPluginOptions };
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as __ΩResolvedBabelTransformPluginOptions, C as __ΩBabelTransformPluginOptions, D as __ΩImportDefinition, E as __ΩDefaultImportDefinition, O as __ΩImportSpecifier, S as __ΩBabelTransformPluginFilter, T as __ΩDeclareBabelTransformPluginReturn, _ as __ΩBabelResolvedConfig, a as BabelTransformPluginBuilder, b as __ΩBabelTransformPluginBuilder, c as BabelTransformPluginOptions, d as DefaultImportDefinition, f as ImportDefinition, g as __ΩBabelPluginPass, h as ResolvedBabelTransformPluginOptions, i as BabelTransformPlugin, k as __ΩNamedImportDefinition, l as BabelUserConfig, m as NamedImportDefinition, n as BabelResolvedConfig, o as BabelTransformPluginBuilderParams, p as ImportSpecifier, r as BabelTransformInput, s as BabelTransformPluginFilter, t as BabelPluginPass, u as DeclareBabelTransformPluginReturn, v as __ΩBabelTransformInput, w as __ΩBabelUserConfig, x as __ΩBabelTransformPluginBuilderParams, y as __ΩBabelTransformPlugin } from "../config-
|
|
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-
|
|
1
|
+
import { A as __ΩResolvedBabelTransformPluginOptions, C as __ΩBabelTransformPluginOptions, D as __ΩImportDefinition, E as __ΩDefaultImportDefinition, O as __ΩImportSpecifier, S as __ΩBabelTransformPluginFilter, T as __ΩDeclareBabelTransformPluginReturn, _ as __ΩBabelResolvedConfig, a as BabelTransformPluginBuilder, b as __ΩBabelTransformPluginBuilder, c as BabelTransformPluginOptions, d as DefaultImportDefinition, f as ImportDefinition, g as __ΩBabelPluginPass, h as ResolvedBabelTransformPluginOptions, i as BabelTransformPlugin, k as __ΩNamedImportDefinition, l as BabelUserConfig, m as NamedImportDefinition, n as BabelResolvedConfig, o as BabelTransformPluginBuilderParams, p as ImportSpecifier, r as BabelTransformInput, s as BabelTransformPluginFilter, t as BabelPluginPass, u as DeclareBabelTransformPluginReturn, v as __ΩBabelTransformInput, w as __ΩBabelUserConfig, x as __ΩBabelTransformPluginBuilderParams, y as __ΩBabelTransformPlugin } from "../config-CB64op4Z.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-gAUFMAXK.mjs";
|
|
3
3
|
import "../index-D8dPsry7.mjs";
|
|
4
4
|
export { BabelPluginContext, BabelPluginOptions, BabelPluginPass, BabelPluginResolvedConfig, BabelPluginUserConfig, BabelResolvedConfig, BabelTransformInput, BabelTransformPlugin, BabelTransformPluginBuilder, BabelTransformPluginBuilderParams, BabelTransformPluginFilter, BabelTransformPluginOptions, BabelUserConfig, DeclareBabelTransformPluginReturn, DefaultImportDefinition, ImportDefinition, ImportSpecifier, NamedImportDefinition, ResolvedBabelTransformPluginOptions, __ΩBabelPluginContext, __ΩBabelPluginOptions, __ΩBabelPluginPass, __ΩBabelPluginResolvedConfig, __ΩBabelPluginUserConfig, __ΩBabelResolvedConfig, __ΩBabelTransformInput, __ΩBabelTransformPlugin, __ΩBabelTransformPluginBuilder, __ΩBabelTransformPluginBuilderParams, __ΩBabelTransformPluginFilter, __ΩBabelTransformPluginOptions, __ΩBabelUserConfig, __ΩDeclareBabelTransformPluginReturn, __ΩDefaultImportDefinition, __ΩImportDefinition, __ΩImportSpecifier, __ΩNamedImportDefinition, __ΩResolvedBabelTransformPluginOptions };
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../config-
|
|
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-
|
|
1
|
+
import "../config-CdGXI-Ik.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-F6ospfOM.cjs";
|
|
3
3
|
export { BabelPluginContext, BabelPluginOptions, BabelPluginResolvedConfig, BabelPluginUserConfig, __ΩBabelPluginContext, __ΩBabelPluginOptions, __ΩBabelPluginResolvedConfig, __ΩBabelPluginUserConfig };
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../config-
|
|
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-
|
|
1
|
+
import "../config-CB64op4Z.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-gAUFMAXK.mjs";
|
|
3
3
|
export { BabelPluginContext, BabelPluginOptions, BabelPluginResolvedConfig, BabelPluginUserConfig, __ΩBabelPluginContext, __ΩBabelPluginOptions, __ΩBabelPluginResolvedConfig, __ΩBabelPluginUserConfig };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-babel",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.311",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
|
|
6
6
|
"keywords": ["babel", "powerlines", "storm-software", "powerlines-plugin"],
|
|
@@ -91,6 +91,7 @@
|
|
|
91
91
|
"@babel/parser": "^7.29.0",
|
|
92
92
|
"@babel/plugin-syntax-typescript": "^7.28.6",
|
|
93
93
|
"@babel/types": "^7.29.0",
|
|
94
|
+
"@powerlines/core": "^0.1.0",
|
|
94
95
|
"@storm-software/config-tools": "^1.189.10",
|
|
95
96
|
"@stryke/fs": "^0.33.43",
|
|
96
97
|
"@stryke/path": "^0.26.6",
|
|
@@ -101,8 +102,8 @@
|
|
|
101
102
|
"jiti": "^2.6.1"
|
|
102
103
|
},
|
|
103
104
|
"devDependencies": {
|
|
104
|
-
"@types/
|
|
105
|
-
"@types/
|
|
105
|
+
"@types/babel__helper-plugin-utils": "^7.10.3",
|
|
106
|
+
"@types/node": "^25.3.3"
|
|
106
107
|
},
|
|
107
108
|
"peerDependencies": { "@babel/plugin-syntax-typescript": "^7.27.1" },
|
|
108
109
|
"peerDependenciesMeta": {
|
|
@@ -147,5 +148,5 @@
|
|
|
147
148
|
"./package.json": "./package.json"
|
|
148
149
|
}
|
|
149
150
|
},
|
|
150
|
-
"gitHead": "
|
|
151
|
+
"gitHead": "e63eb5a0ecd0e5ee3e030388ad1c534b3ecb2136"
|
|
151
152
|
}
|