powerlines 0.36.29 → 0.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{context-DU4oqb6r.d.cts → api-CLQePK25.d.cts} +262 -127
- package/dist/{context-DmCNtNIs.d.ts → api-DClrDYWk.d.ts} +262 -127
- package/dist/api.cjs +4 -4
- package/dist/api.d.cts +7 -7
- package/dist/api.d.ts +7 -7
- package/dist/api.js +3 -3
- package/dist/astro.cjs +6 -6
- package/dist/astro.d.cts +6 -5
- package/dist/astro.d.ts +6 -5
- package/dist/astro.js +5 -5
- package/dist/{chunk-K4ZR45W7.cjs → chunk-2ZNVD64B.cjs} +4 -4
- package/dist/{chunk-7IDSUDJN.js → chunk-3JGCXWAM.js} +3 -3
- package/dist/chunk-42ZHOCZJ.cjs +14 -0
- package/dist/{chunk-PZZP3VX2.cjs → chunk-4PIVB3SY.cjs} +14 -9
- package/dist/{chunk-ZCMOAOQN.cjs → chunk-B6DVCLP5.cjs} +8 -7
- package/dist/chunk-CCJQBJKQ.js +12 -0
- package/dist/{chunk-VZMAJMBD.js → chunk-DVJEAUGP.js} +5 -5
- package/dist/{chunk-3CCAN6GY.cjs → chunk-E4QAO32M.cjs} +176 -128
- package/dist/chunk-FON7JDQF.cjs +12 -0
- package/dist/{chunk-NSHXFNIL.js → chunk-IBQ5USID.js} +12 -7
- package/dist/{chunk-TP4FRF4H.cjs → chunk-JQDMR7OP.cjs} +2 -2
- package/dist/{chunk-4VQBXIAH.js → chunk-MI5E6YZI.js} +3 -3
- package/dist/chunk-NITQ5IYP.js +22 -0
- package/dist/{chunk-JMX44J5R.js → chunk-NM3AFEVI.js} +174 -128
- package/dist/{chunk-AJPO5EP7.js → chunk-PQXP7XQK.js} +8 -7
- package/dist/{chunk-OCEXXVLR.cjs → chunk-TFRZZNXL.cjs} +6 -6
- package/dist/{chunk-JTK4RYSG.js → chunk-U5MNJ4XF.js} +3 -3
- package/dist/{chunk-EXY3RCJH.js → chunk-UNIWU6XL.js} +2 -2
- package/dist/chunk-V5WOGN7O.cjs +25 -0
- package/dist/chunk-XHOP5GXJ.cjs +12 -0
- package/dist/esbuild.cjs +8 -8
- package/dist/esbuild.d.cts +6 -5
- package/dist/esbuild.d.ts +6 -5
- package/dist/esbuild.js +5 -5
- package/dist/farm.cjs +5 -5
- package/dist/farm.d.cts +6 -5
- package/dist/farm.d.ts +6 -5
- package/dist/farm.js +4 -4
- package/dist/index.cjs +30 -22
- package/dist/index.d.cts +6 -7
- package/dist/index.d.ts +6 -7
- package/dist/index.js +6 -6
- package/dist/lib/build/esbuild.d.cts +1 -1
- package/dist/lib/build/esbuild.d.ts +1 -1
- package/dist/lib/build/index.d.cts +2 -3
- package/dist/lib/build/index.d.ts +2 -3
- package/dist/lib/build/rolldown.d.cts +1 -1
- package/dist/lib/build/rolldown.d.ts +1 -1
- package/dist/lib/build/rollup.d.cts +1 -1
- package/dist/lib/build/rollup.d.ts +1 -1
- package/dist/lib/build/rspack.d.cts +1 -1
- package/dist/lib/build/rspack.d.ts +1 -1
- package/dist/lib/build/tsdown.d.cts +1 -1
- package/dist/lib/build/tsdown.d.ts +1 -1
- package/dist/lib/build/tsup.d.cts +1 -1
- package/dist/lib/build/tsup.d.ts +1 -1
- package/dist/lib/build/unbuild.d.cts +2 -3
- package/dist/lib/build/unbuild.d.ts +2 -3
- package/dist/lib/build/vite.d.cts +1 -1
- package/dist/lib/build/vite.d.ts +1 -1
- package/dist/lib/build/webpack.d.cts +1 -1
- package/dist/lib/build/webpack.d.ts +1 -1
- package/dist/lib/chunk-254IMO3A.js +17 -0
- package/dist/lib/chunk-254IMO3A.js.map +1 -0
- package/dist/lib/{chunk-T3VYM4BO.cjs → chunk-4QMQCXAG.cjs} +6 -6
- package/dist/lib/{chunk-T3VYM4BO.cjs.map → chunk-4QMQCXAG.cjs.map} +1 -1
- package/dist/lib/chunk-64R4MDJ7.cjs +25 -0
- package/dist/lib/chunk-64R4MDJ7.cjs.map +1 -0
- package/dist/lib/{chunk-HEMW2YZA.js → chunk-7PD2L3PS.js} +2 -2
- package/dist/lib/{chunk-HEMW2YZA.js.map → chunk-7PD2L3PS.js.map} +1 -1
- package/dist/lib/{chunk-PWKYZBQQ.js → chunk-FI4QUQV2.js} +4 -4
- package/dist/lib/{chunk-PWKYZBQQ.js.map → chunk-FI4QUQV2.js.map} +1 -1
- package/dist/lib/{chunk-3RTOKGVV.cjs → chunk-G3BXMS2V.cjs} +47 -48
- package/dist/lib/chunk-G3BXMS2V.cjs.map +1 -0
- package/dist/lib/chunk-GNEHIBN4.cjs +20 -0
- package/dist/lib/chunk-GNEHIBN4.cjs.map +1 -0
- package/dist/lib/{chunk-57WHQU5T.cjs → chunk-GZDE4GLY.cjs} +2 -2
- package/dist/lib/{chunk-57WHQU5T.cjs.map → chunk-GZDE4GLY.cjs.map} +1 -1
- package/dist/lib/chunk-HGE5DAZF.js +22 -0
- package/dist/lib/chunk-HGE5DAZF.js.map +1 -0
- package/dist/lib/{chunk-GUZKITBG.js → chunk-I7BLJZ4D.js} +5 -5
- package/dist/lib/chunk-I7BLJZ4D.js.map +1 -0
- package/dist/lib/{chunk-MZQFHBHY.cjs → chunk-QVDESIYV.cjs} +5 -5
- package/dist/lib/chunk-QVDESIYV.cjs.map +1 -0
- package/dist/lib/{chunk-POY47Z36.js → chunk-TO3SBSXL.js} +35 -36
- package/dist/lib/chunk-TO3SBSXL.js.map +1 -0
- package/dist/lib/{chunk-XAALLEOG.js → chunk-TWAVU346.js} +27 -29
- package/dist/lib/chunk-TWAVU346.js.map +1 -0
- package/dist/lib/{chunk-C7KNYLNP.cjs → chunk-UXLXQOJD.cjs} +29 -30
- package/dist/lib/chunk-UXLXQOJD.cjs.map +1 -0
- package/dist/lib/chunk-WAN5RBXY.cjs +234 -0
- package/dist/lib/chunk-WAN5RBXY.cjs.map +1 -0
- package/dist/lib/chunk-XDUEQVFC.js +232 -0
- package/dist/lib/chunk-XDUEQVFC.js.map +1 -0
- package/dist/lib/{config-BSQhtJCR.d.ts → config-BLfOgflT.d.ts} +230 -104
- package/dist/lib/{config-CP6f9ozu.d.cts → config-CmG_oSbS.d.cts} +230 -104
- package/dist/lib/config-file.d.cts +1 -1
- package/dist/lib/config-file.d.ts +1 -1
- package/dist/lib/contexts/api-context.cjs +7 -5
- package/dist/lib/contexts/api-context.d.cts +2 -3
- package/dist/lib/contexts/api-context.d.ts +2 -3
- package/dist/lib/contexts/api-context.js +6 -4
- package/dist/lib/contexts/context.cjs +3 -2
- package/dist/lib/contexts/context.d.cts +2 -3
- package/dist/lib/contexts/context.d.ts +2 -3
- package/dist/lib/contexts/context.js +2 -1
- package/dist/lib/contexts/environment-context.cjs +6 -4
- package/dist/lib/contexts/environment-context.d.cts +3 -4
- package/dist/lib/contexts/environment-context.d.ts +3 -4
- package/dist/lib/contexts/environment-context.js +5 -3
- package/dist/lib/contexts/index.cjs +10 -8
- package/dist/lib/contexts/index.d.cts +2 -3
- package/dist/lib/contexts/index.d.ts +2 -3
- package/dist/lib/contexts/index.js +6 -4
- package/dist/lib/contexts/plugin-context.cjs +2 -2
- package/dist/lib/contexts/plugin-context.d.cts +2 -3
- package/dist/lib/contexts/plugin-context.d.ts +2 -3
- package/dist/lib/contexts/plugin-context.js +1 -1
- package/dist/lib/entry.d.cts +1 -1
- package/dist/lib/entry.d.ts +1 -1
- package/dist/lib/fs/index.d.cts +1 -1
- package/dist/lib/fs/index.d.ts +1 -1
- package/dist/lib/fs/vfs.d.cts +1 -1
- package/dist/lib/fs/vfs.d.ts +1 -1
- package/dist/lib/index.cjs +22 -17
- package/dist/lib/index.d.cts +3 -5
- package/dist/lib/index.d.ts +3 -5
- package/dist/lib/index.js +8 -7
- package/dist/lib/{internal-BusfSz8D.d.ts → internal-BfGb9HLc.d.ts} +4 -3
- package/dist/lib/{internal-CPKLmt5v.d.cts → internal-CYMrNGHE.d.cts} +4 -3
- package/dist/lib/logger.d.cts +1 -1
- package/dist/lib/logger.d.ts +1 -1
- package/dist/lib/typescript/import-transformer.d.cts +1 -1
- package/dist/lib/typescript/import-transformer.d.ts +1 -1
- package/dist/lib/typescript/index.d.cts +1 -1
- package/dist/lib/typescript/index.d.ts +1 -1
- package/dist/lib/typescript/ts-morph.d.cts +1 -1
- package/dist/lib/typescript/ts-morph.d.ts +1 -1
- package/dist/lib/unplugin/factory.cjs +8 -6
- package/dist/lib/unplugin/factory.d.cts +4 -128
- package/dist/lib/unplugin/factory.d.ts +4 -128
- package/dist/lib/unplugin/factory.js +7 -5
- package/dist/lib/unplugin/helpers.cjs +7 -2
- package/dist/lib/unplugin/helpers.d.cts +9 -2
- package/dist/lib/unplugin/helpers.d.ts +9 -2
- package/dist/lib/unplugin/helpers.js +2 -1
- package/dist/lib/unplugin/index.cjs +15 -10
- package/dist/lib/unplugin/index.d.cts +4 -6
- package/dist/lib/unplugin/index.d.ts +4 -6
- package/dist/lib/unplugin/index.js +8 -7
- package/dist/lib/unplugin/plugin.cjs +4 -3
- package/dist/lib/unplugin/plugin.d.cts +2 -4
- package/dist/lib/unplugin/plugin.d.ts +2 -4
- package/dist/lib/unplugin/plugin.js +3 -2
- package/dist/lib/utilities/bundle.d.cts +1 -1
- package/dist/lib/utilities/bundle.d.ts +1 -1
- package/dist/lib/utilities/cache.d.cts +1 -1
- package/dist/lib/utilities/cache.d.ts +1 -1
- package/dist/lib/utilities/file-header.d.cts +1 -1
- package/dist/lib/utilities/file-header.d.ts +1 -1
- package/dist/lib/utilities/index.d.cts +1 -1
- package/dist/lib/utilities/index.d.ts +1 -1
- package/dist/lib/utilities/meta.d.cts +1 -1
- package/dist/lib/utilities/meta.d.ts +1 -1
- package/dist/lib/utilities/resolve.d.cts +1 -1
- package/dist/lib/utilities/resolve.d.ts +1 -1
- package/dist/lib/utilities/source-file.d.cts +1 -1
- package/dist/lib/utilities/source-file.d.ts +1 -1
- package/dist/lib/utilities/source-map.d.cts +1 -1
- package/dist/lib/utilities/source-map.d.ts +1 -1
- package/dist/lib/utilities/worker.d.cts +1 -1
- package/dist/lib/utilities/worker.d.ts +1 -1
- package/dist/lib/utilities/write-file.d.cts +1 -1
- package/dist/lib/utilities/write-file.d.ts +1 -1
- package/dist/next.cjs +6 -6
- package/dist/next.js +5 -5
- package/dist/nuxt.cjs +9 -9
- package/dist/nuxt.d.cts +4 -3
- package/dist/nuxt.d.ts +4 -3
- package/dist/nuxt.js +7 -7
- package/dist/plugin-utils/{chunk-EJ5XPAJQ.cjs → chunk-2I5L22QB.cjs} +8 -6
- package/dist/plugin-utils/chunk-2I5L22QB.cjs.map +1 -0
- package/dist/plugin-utils/{chunk-AHZPK4Z5.cjs → chunk-4FLR5DY5.cjs} +7 -7
- package/dist/plugin-utils/{chunk-AHZPK4Z5.cjs.map → chunk-4FLR5DY5.cjs.map} +1 -1
- package/dist/plugin-utils/{chunk-BWAX3NRG.cjs → chunk-6YOLE5BT.cjs} +34 -21
- package/dist/plugin-utils/chunk-6YOLE5BT.cjs.map +1 -0
- package/dist/plugin-utils/{chunk-JAG7QJDV.cjs → chunk-ARNNN4GS.cjs} +5 -5
- package/dist/plugin-utils/chunk-ARNNN4GS.cjs.map +1 -0
- package/dist/plugin-utils/{chunk-FTVPZZJO.js → chunk-I3FSMSLD.js} +32 -20
- package/dist/plugin-utils/chunk-I3FSMSLD.js.map +1 -0
- package/dist/plugin-utils/{chunk-N4IXPCGY.js → chunk-RZAQTG45.js} +3 -3
- package/dist/plugin-utils/{chunk-N4IXPCGY.js.map → chunk-RZAQTG45.js.map} +1 -1
- package/dist/plugin-utils/{chunk-JCX2UJYO.js → chunk-XDURJUGS.js} +5 -3
- package/dist/plugin-utils/chunk-XDURJUGS.js.map +1 -0
- package/dist/plugin-utils/{chunk-WZCGJ7JR.js → chunk-Z2BYI6KW.js} +3 -3
- package/dist/plugin-utils/chunk-Z2BYI6KW.js.map +1 -0
- package/dist/plugin-utils/{context-GdayEWcl.d.cts → context-BQTlTcfV.d.cts} +444 -76
- package/dist/plugin-utils/{context-GdayEWcl.d.ts → context-BQTlTcfV.d.ts} +444 -76
- package/dist/plugin-utils/context-helpers.d.cts +11 -2
- package/dist/plugin-utils/context-helpers.d.ts +11 -2
- package/dist/plugin-utils/enforce.cjs +5 -5
- package/dist/plugin-utils/enforce.d.cts +13 -4
- package/dist/plugin-utils/enforce.d.ts +13 -4
- package/dist/plugin-utils/enforce.js +4 -4
- package/dist/plugin-utils/extend.cjs +4 -4
- package/dist/plugin-utils/extend.d.cts +11 -2
- package/dist/plugin-utils/extend.d.ts +11 -2
- package/dist/plugin-utils/extend.js +3 -3
- package/dist/plugin-utils/get-config-path.d.cts +11 -2
- package/dist/plugin-utils/get-config-path.d.ts +11 -2
- package/dist/plugin-utils/helpers.cjs +25 -21
- package/dist/plugin-utils/helpers.d.cts +36 -32
- package/dist/plugin-utils/helpers.d.ts +36 -32
- package/dist/plugin-utils/helpers.js +1 -1
- package/dist/plugin-utils/index.cjs +31 -27
- package/dist/plugin-utils/index.d.cts +12 -3
- package/dist/plugin-utils/index.d.ts +12 -3
- package/dist/plugin-utils/index.js +4 -4
- package/dist/plugin-utils/merge.cjs +3 -3
- package/dist/plugin-utils/merge.d.cts +11 -2
- package/dist/plugin-utils/merge.d.ts +11 -2
- package/dist/plugin-utils/merge.js +2 -2
- package/dist/plugin-utils/paths.d.cts +11 -2
- package/dist/plugin-utils/paths.d.ts +11 -2
- package/dist/rolldown.cjs +8 -8
- package/dist/rolldown.d.cts +6 -5
- package/dist/rolldown.d.ts +6 -5
- package/dist/rolldown.js +5 -5
- package/dist/rollup.cjs +5 -5
- package/dist/rollup.d.cts +6 -5
- package/dist/rollup.d.ts +6 -5
- package/dist/rollup.js +4 -4
- package/dist/rspack.cjs +5 -5
- package/dist/rspack.d.cts +6 -5
- package/dist/rspack.d.ts +6 -5
- package/dist/rspack.js +4 -4
- package/dist/tsdown.cjs +6 -6
- package/dist/tsdown.js +5 -5
- package/dist/tsup.cjs +6 -6
- package/dist/tsup.js +5 -5
- package/dist/types/api.d.cts +5 -5
- package/dist/types/api.d.ts +5 -5
- package/dist/types/babel.d.cts +6 -5
- package/dist/types/babel.d.ts +6 -5
- package/dist/types/build.cjs +7 -3
- package/dist/types/build.d.cts +19 -13
- package/dist/types/build.d.ts +19 -13
- package/dist/types/build.js +1 -1
- package/dist/types/commands.d.cts +4 -3
- package/dist/types/commands.d.ts +4 -3
- package/dist/types/config.d.cts +3 -2
- package/dist/types/config.d.ts +3 -2
- package/dist/types/context.cjs +2 -2
- package/dist/types/context.d.cts +3 -2
- package/dist/types/context.d.ts +3 -2
- package/dist/types/context.js +1 -1
- package/dist/types/hooks.cjs +8 -1
- package/dist/types/hooks.d.cts +15 -14
- package/dist/types/hooks.d.ts +15 -14
- package/dist/types/hooks.js +2 -1
- package/dist/types/index.cjs +19 -11
- package/dist/types/index.d.cts +4 -5
- package/dist/types/index.d.ts +4 -5
- package/dist/types/index.js +4 -4
- package/dist/types/internal.d.cts +8 -6
- package/dist/types/internal.d.ts +8 -6
- package/dist/types/plugin.cjs +7 -7
- package/dist/types/plugin.d.cts +3 -2
- package/dist/types/plugin.d.ts +3 -2
- package/dist/types/plugin.js +2 -2
- package/dist/types/resolved.d.cts +2 -1
- package/dist/types/resolved.d.ts +2 -1
- package/dist/types/unplugin.d.cts +14 -39
- package/dist/types/unplugin.d.ts +14 -39
- package/dist/unloader.cjs +5 -5
- package/dist/unloader.d.cts +4 -3
- package/dist/unloader.d.ts +4 -3
- package/dist/unloader.js +4 -4
- package/dist/unplugin.cjs +17 -15
- package/dist/unplugin.d.cts +18 -13
- package/dist/unplugin.d.ts +18 -13
- package/dist/unplugin.js +9 -13
- package/dist/vite.cjs +8 -8
- package/dist/vite.d.cts +6 -5
- package/dist/vite.d.ts +6 -5
- package/dist/vite.js +5 -5
- package/dist/webpack.cjs +8 -8
- package/dist/webpack.d.cts +6 -5
- package/dist/webpack.d.ts +6 -5
- package/dist/webpack.js +5 -5
- package/package.json +7 -4
- package/dist/api-D0gA4eJU.d.cts +0 -142
- package/dist/api-cYTlb0MO.d.ts +0 -142
- package/dist/chunk-HJW7OH6E.js +0 -3
- package/dist/chunk-J7SXQCBV.cjs +0 -12
- package/dist/chunk-U2RJRKLT.js +0 -15
- package/dist/chunk-WVLFG7L6.cjs +0 -12
- package/dist/chunk-XOMY3USD.cjs +0 -17
- package/dist/chunk-XZO6ZJQP.cjs +0 -4
- package/dist/lib/api-BeWRTlF3.d.cts +0 -141
- package/dist/lib/api-C00m3GB0.d.ts +0 -141
- package/dist/lib/chunk-3RTOKGVV.cjs.map +0 -1
- package/dist/lib/chunk-A4RSMLXW.cjs +0 -13
- package/dist/lib/chunk-A4RSMLXW.cjs.map +0 -1
- package/dist/lib/chunk-C7KNYLNP.cjs.map +0 -1
- package/dist/lib/chunk-DLX6BNNE.cjs +0 -196
- package/dist/lib/chunk-DLX6BNNE.cjs.map +0 -1
- package/dist/lib/chunk-GUZKITBG.js.map +0 -1
- package/dist/lib/chunk-HDUSUF6L.js +0 -11
- package/dist/lib/chunk-HDUSUF6L.js.map +0 -1
- package/dist/lib/chunk-MZQFHBHY.cjs.map +0 -1
- package/dist/lib/chunk-POY47Z36.js.map +0 -1
- package/dist/lib/chunk-XAALLEOG.js.map +0 -1
- package/dist/lib/chunk-XHDL2XZB.js +0 -194
- package/dist/lib/chunk-XHDL2XZB.js.map +0 -1
- package/dist/lib/unplugin-BKtwOoMk.d.ts +0 -18
- package/dist/lib/unplugin-BWG1mWFO.d.cts +0 -18
- package/dist/plugin-utils/chunk-BWAX3NRG.cjs.map +0 -1
- package/dist/plugin-utils/chunk-EJ5XPAJQ.cjs.map +0 -1
- package/dist/plugin-utils/chunk-FTVPZZJO.js.map +0 -1
- package/dist/plugin-utils/chunk-JAG7QJDV.cjs.map +0 -1
- package/dist/plugin-utils/chunk-JCX2UJYO.js.map +0 -1
- package/dist/plugin-utils/chunk-WZCGJ7JR.js.map +0 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { P as PluginContext, e as
|
|
2
|
-
import * as
|
|
1
|
+
import { P as PluginContext, R as ResolvedConfig, a as Plugin, e as PluginConfigObject, f as PluginConfigTuple, g as PluginConfig, h as PluginHookObject, i as PluginHook, H as HookFields, j as PluginHookFields, k as PluginHooksListItem, l as UnpluginBuilderVariant, m as UnpluginHooksListItem, n as PluginHooks, U as UnresolvedContext, E as EnvironmentConfig, o as EnvironmentResolvedConfig, T as TypesResult, p as UnpluginOptions } from './context-BQTlTcfV.js';
|
|
2
|
+
import * as rollup from 'rollup';
|
|
3
3
|
import * as _stryke_types_base from '@stryke/types/base';
|
|
4
4
|
import { AnyFunction } from '@stryke/types/base';
|
|
5
|
+
import * as unplugin from 'unplugin';
|
|
5
6
|
import '@stryke/env/get-env-paths';
|
|
6
7
|
import '@stryke/http/fetch';
|
|
7
8
|
import '@stryke/types/package-json';
|
|
@@ -18,20 +19,18 @@ import '@stryke/types/configuration';
|
|
|
18
19
|
import '@stryke/types/file';
|
|
19
20
|
import 'compatx';
|
|
20
21
|
import 'vite';
|
|
22
|
+
import '@farmfe/core';
|
|
23
|
+
import '@rspack/core';
|
|
24
|
+
import '@storm-software/tsup/types';
|
|
25
|
+
import '@storm-software/unbuild/types';
|
|
26
|
+
import 'esbuild';
|
|
27
|
+
import 'rolldown';
|
|
28
|
+
import 'tsdown';
|
|
29
|
+
import 'webpack';
|
|
21
30
|
import '@stryke/fs/resolve';
|
|
31
|
+
import '@stryke/types/array';
|
|
22
32
|
import '@stryke/types/tsconfig';
|
|
23
33
|
import 'typescript';
|
|
24
|
-
import '@stryke/types/array';
|
|
25
|
-
|
|
26
|
-
type BaseHooks<TContext extends PluginContext = PluginContext> = BasePluginHookFunctions<TContext>;
|
|
27
|
-
type BaseHookKeys<TContext extends PluginContext = PluginContext> = keyof BaseHooks<TContext>;
|
|
28
|
-
type ExternalHooks<TContext extends PluginContext = PluginContext> = ExternalPluginHookFunctions<TContext>;
|
|
29
|
-
type ExternalHookKeys<TContext extends PluginContext = PluginContext> = keyof ExternalHooks<TContext>;
|
|
30
|
-
type Hooks<TContext extends PluginContext = PluginContext> = PluginHookFunctions<TContext>;
|
|
31
|
-
type HookKeys<TContext extends PluginContext = PluginContext> = keyof Hooks<TContext>;
|
|
32
|
-
interface BaseHooksListItem<TContext extends PluginContext = PluginContext, TKey extends BaseHookKeys<TContext> = BaseHookKeys<TContext>> extends PluginHookObject<BaseHooks<TContext>[TKey]> {
|
|
33
|
-
plugin: Plugin<TContext>;
|
|
34
|
-
}
|
|
35
34
|
|
|
36
35
|
/**
|
|
37
36
|
* Type guard to check if an object is a {@link Plugin}
|
|
@@ -46,14 +45,14 @@ declare function isPlugin<TContext extends PluginContext = PluginContext<Resolve
|
|
|
46
45
|
* @param value - The object to check
|
|
47
46
|
* @returns True if the object is a {@link PluginConfigObject}, false otherwise
|
|
48
47
|
*/
|
|
49
|
-
declare function isPluginConfigObject(value: unknown): value is PluginConfigObject
|
|
48
|
+
declare function isPluginConfigObject<TContext extends PluginContext = PluginContext<ResolvedConfig>>(value: unknown): value is PluginConfigObject<TContext>;
|
|
50
49
|
/**
|
|
51
50
|
* Type guard to check if an object is a {@link PluginConfigTuple}
|
|
52
51
|
*
|
|
53
52
|
* @param value - The object to check
|
|
54
53
|
* @returns True if the object is a {@link PluginConfigTuple}, false otherwise
|
|
55
54
|
*/
|
|
56
|
-
declare function isPluginConfigTuple(value: unknown): value is PluginConfigTuple
|
|
55
|
+
declare function isPluginConfigTuple<TContext extends PluginContext = PluginContext<ResolvedConfig>>(value: unknown): value is PluginConfigTuple<TContext>;
|
|
57
56
|
/**
|
|
58
57
|
* Type guard to check if an object is a {@link PluginConfig}
|
|
59
58
|
*
|
|
@@ -82,13 +81,14 @@ declare function isPluginHookFunction(value: unknown): value is AnyFunction;
|
|
|
82
81
|
* @returns True if the object is a {@link PluginHook}, false otherwise
|
|
83
82
|
*/
|
|
84
83
|
declare function isPluginHook(value: unknown): value is PluginHook<AnyFunction>;
|
|
84
|
+
type GetHookHandlerReturnType<TContext extends PluginContext = PluginContext, TField extends HookFields<TContext> = HookFields<TContext>> = TField extends PluginHookFields ? PluginHooksListItem<TContext, TField>["handler"] : TField extends UnpluginBuilderVariant ? UnpluginHooksListItem<TContext, TField>["handler"] : never;
|
|
85
85
|
/**
|
|
86
86
|
* Extract the hook handler function from a plugin hook
|
|
87
87
|
*
|
|
88
88
|
* @param pluginHook - The plugin hook to extract the handler function from
|
|
89
89
|
* @returns The hook handler function
|
|
90
90
|
*/
|
|
91
|
-
declare function getHookHandler(pluginHook: PluginHook<AnyFunction>):
|
|
91
|
+
declare function getHookHandler<TContext extends PluginContext = PluginContext, TField extends HookFields<TContext> = HookFields<TContext>>(pluginHook: PluginHook<AnyFunction>): GetHookHandlerReturnType<TContext, TField>;
|
|
92
92
|
/**
|
|
93
93
|
* Extract a plugin hook from a plugin
|
|
94
94
|
*
|
|
@@ -97,12 +97,10 @@ declare function getHookHandler(pluginHook: PluginHook<AnyFunction>): AnyFunctio
|
|
|
97
97
|
* @param hook - The name of the hook to extract
|
|
98
98
|
* @returns The extracted hook, or undefined if the hook does not exist
|
|
99
99
|
*/
|
|
100
|
-
declare function extractPluginHook<TContext extends PluginContext = PluginContext, TPlugin extends Plugin<TContext> = Plugin<TContext>>(context: TContext, plugin: TPlugin, hook:
|
|
101
|
-
normal: OmitThisParameter<((this:
|
|
102
|
-
isEntry: boolean;
|
|
103
|
-
}) => _stryke_types_base.MaybePromise<string | unplugin.ExternalIdResult | null | undefined>) & ((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string, importer: string | undefined, options: {
|
|
100
|
+
declare function extractPluginHook<TContext extends PluginContext = PluginContext, TPlugin extends Plugin<TContext> = Plugin<TContext>>(context: TContext, plugin: TPlugin, hook: keyof PluginHooks<TContext>): {
|
|
101
|
+
normal: OmitThisParameter<((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, code: string, id: string) => _stryke_types_base.MaybePromise<unplugin.TransformResult>) | (((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, code: string, id: string) => _stryke_types_base.MaybePromise<unplugin.TransformResult>) & PluginHookObject<(this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, code: string, id: string) => _stryke_types_base.MaybePromise<unplugin.TransformResult>, "code" | "id">) | (PluginHookObject<(this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, code: string, id: string) => _stryke_types_base.MaybePromise<unplugin.TransformResult>, never> & ((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, code: string, id: string) => _stryke_types_base.MaybePromise<unplugin.TransformResult>)) | ((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string) => _stryke_types_base.MaybePromise<rollup.LoadResult>) | (((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string) => _stryke_types_base.MaybePromise<rollup.LoadResult>) & PluginHookObject<(this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string) => _stryke_types_base.MaybePromise<rollup.LoadResult>, "id">) | (PluginHookObject<(this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string) => _stryke_types_base.MaybePromise<rollup.LoadResult>, never> & ((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string) => _stryke_types_base.MaybePromise<rollup.LoadResult>)) | ((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string, importer: string | undefined, options: {
|
|
104
102
|
isEntry: boolean;
|
|
105
|
-
}) => _stryke_types_base.MaybePromise<string | unplugin.ExternalIdResult | null | undefined>)
|
|
103
|
+
}) => _stryke_types_base.MaybePromise<string | unplugin.ExternalIdResult | null | undefined>) | (((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string, importer: string | undefined, options: {
|
|
106
104
|
isEntry: boolean;
|
|
107
105
|
}) => _stryke_types_base.MaybePromise<string | unplugin.ExternalIdResult | null | undefined>) & PluginHookObject<(this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string, importer: string | undefined, options: {
|
|
108
106
|
isEntry: boolean;
|
|
@@ -110,29 +108,34 @@ declare function extractPluginHook<TContext extends PluginContext = PluginContex
|
|
|
110
108
|
isEntry: boolean;
|
|
111
109
|
}) => _stryke_types_base.MaybePromise<string | unplugin.ExternalIdResult | null | undefined>, never> & ((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string, importer: string | undefined, options: {
|
|
112
110
|
isEntry: boolean;
|
|
113
|
-
}) => _stryke_types_base.MaybePromise<string | unplugin.ExternalIdResult | null | undefined>)) | ((this: TContext, name: string, environment: EnvironmentConfig) => _stryke_types_base.MaybePromise<Partial<EnvironmentResolvedConfig> | undefined | null>) | ((this: TContext) => _stryke_types_base.MaybePromise<void>) | ((this: TContext, code: string) => _stryke_types_base.MaybePromise<TypesResult | string | undefined | null>) | ((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext) => _stryke_types_base.MaybePromise<void>) | ((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext) => _stryke_types_base.MaybePromise<void>) | ((this: TContext) => _stryke_types_base.MaybePromise<void>)>;
|
|
111
|
+
}) => _stryke_types_base.MaybePromise<string | unplugin.ExternalIdResult | null | undefined>)) | (((this: UnresolvedContext<TContext["config"]>) => _stryke_types_base.MaybePromise<(TContext["config"] extends infer T ? { [K in keyof T]?: (T[K] extends infer T_1 ? { [K_2 in keyof T_1]?: (T_1[K_2] extends infer T_2 ? { [K_3 in keyof T_2]?: (T_2[K_3] extends infer T_3 ? { [K_4 in keyof T_3]?: (T_3[K_4] extends infer T_4 ? { [K_5 in keyof T_4]?: (T_4[K_5] extends infer T_5 ? { [K_6 in keyof T_5]?: (T_5[K_6] extends infer T_6 ? { [K_7 in keyof T_6]?: (T_6[K_7] extends infer T_7 ? { [K_8 in keyof T_7]?: (T_7[K_8] extends infer T_8 ? { [K_9 in keyof T_8]?: (T_8[K_9] extends infer T_9 ? { [K_10 in keyof T_9]?: (T_9[K_10] extends infer T_10 ? { [K_11 in keyof T_10]?: /*elided*/ any | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) & Record<string, any>>) & ((this: UnresolvedContext<TContext["config"]>) => _stryke_types_base.MaybePromise<(TContext["config"] extends infer T ? { [K in keyof T]?: (T[K] extends infer T_1 ? { [K_2 in keyof T_1]?: (T_1[K_2] extends infer T_2 ? { [K_3 in keyof T_2]?: (T_2[K_3] extends infer T_3 ? { [K_4 in keyof T_3]?: (T_3[K_4] extends infer T_4 ? { [K_5 in keyof T_4]?: (T_4[K_5] extends infer T_5 ? { [K_6 in keyof T_5]?: (T_5[K_6] extends infer T_6 ? { [K_7 in keyof T_6]?: (T_6[K_7] extends infer T_7 ? { [K_8 in keyof T_7]?: (T_7[K_8] extends infer T_8 ? { [K_9 in keyof T_8]?: (T_8[K_9] extends infer T_9 ? { [K_10 in keyof T_9]?: (T_9[K_10] extends infer T_10 ? { [K_11 in keyof T_10]?: /*elided*/ any | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) & Record<string, any>>)) | (((this: UnresolvedContext<TContext["config"]>) => _stryke_types_base.MaybePromise<(TContext["config"] extends infer T ? { [K in keyof T]?: (T[K] extends infer T_1 ? { [K_2 in keyof T_1]?: (T_1[K_2] extends infer T_2 ? { [K_3 in keyof T_2]?: (T_2[K_3] extends infer T_3 ? { [K_4 in keyof T_3]?: (T_3[K_4] extends infer T_4 ? { [K_5 in keyof T_4]?: (T_4[K_5] extends infer T_5 ? { [K_6 in keyof T_5]?: (T_5[K_6] extends infer T_6 ? { [K_7 in keyof T_6]?: (T_6[K_7] extends infer T_7 ? { [K_8 in keyof T_7]?: (T_7[K_8] extends infer T_8 ? { [K_9 in keyof T_8]?: (T_8[K_9] extends infer T_9 ? { [K_10 in keyof T_9]?: (T_9[K_10] extends infer T_10 ? { [K_11 in keyof T_10]?: /*elided*/ any | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) & Record<string, any>>) & PluginHookObject<(this: UnresolvedContext<TContext["config"]>) => _stryke_types_base.MaybePromise<(TContext["config"] extends infer T ? { [K in keyof T]?: (T[K] extends infer T_1 ? { [K_2 in keyof T_1]?: (T_1[K_2] extends infer T_2 ? { [K_3 in keyof T_2]?: (T_2[K_3] extends infer T_3 ? { [K_4 in keyof T_3]?: (T_3[K_4] extends infer T_4 ? { [K_5 in keyof T_4]?: (T_4[K_5] extends infer T_5 ? { [K_6 in keyof T_5]?: (T_5[K_6] extends infer T_6 ? { [K_7 in keyof T_6]?: (T_6[K_7] extends infer T_7 ? { [K_8 in keyof T_7]?: (T_7[K_8] extends infer T_8 ? { [K_9 in keyof T_8]?: (T_8[K_9] extends infer T_9 ? { [K_10 in keyof T_9]?: (T_9[K_10] extends infer T_10 ? { [K_11 in keyof T_10]?: /*elided*/ any | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) & Record<string, any>>, never>) | (((this: UnresolvedContext<TContext["config"]>) => _stryke_types_base.MaybePromise<(TContext["config"] extends infer T ? { [K in keyof T]?: (T[K] extends infer T_1 ? { [K_2 in keyof T_1]?: (T_1[K_2] extends infer T_2 ? { [K_3 in keyof T_2]?: (T_2[K_3] extends infer T_3 ? { [K_4 in keyof T_3]?: (T_3[K_4] extends infer T_4 ? { [K_5 in keyof T_4]?: (T_4[K_5] extends infer T_5 ? { [K_6 in keyof T_5]?: (T_5[K_6] extends infer T_6 ? { [K_7 in keyof T_6]?: (T_6[K_7] extends infer T_7 ? { [K_8 in keyof T_7]?: (T_7[K_8] extends infer T_8 ? { [K_9 in keyof T_8]?: (T_8[K_9] extends infer T_9 ? { [K_10 in keyof T_9]?: (T_9[K_10] extends infer T_10 ? { [K_11 in keyof T_10]?: /*elided*/ any | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) & Record<string, any>>) & (TContext["config"] extends infer T ? { [K in keyof T]?: (T[K] extends infer T_1 ? { [K_2 in keyof T_1]?: (T_1[K_2] extends infer T_2 ? { [K_3 in keyof T_2]?: (T_2[K_3] extends infer T_3 ? { [K_4 in keyof T_3]?: (T_3[K_4] extends infer T_4 ? { [K_5 in keyof T_4]?: (T_4[K_5] extends infer T_5 ? { [K_6 in keyof T_5]?: (T_5[K_6] extends infer T_6 ? { [K_7 in keyof T_6]?: (T_6[K_7] extends infer T_7 ? { [K_8 in keyof T_7]?: (T_7[K_8] extends infer T_8 ? { [K_9 in keyof T_8]?: (T_8[K_9] extends infer T_9 ? { [K_10 in keyof T_9]?: (T_9[K_10] extends infer T_10 ? { [K_11 in keyof T_10]?: /*elided*/ any | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) & Record<string, any>) | (PluginHookObject<(this: UnresolvedContext<TContext["config"]>) => _stryke_types_base.MaybePromise<(TContext["config"] extends infer T_1 ? { [K in keyof T_1]?: (T_1[K] extends infer T_2 ? { [K_2 in keyof T_2]?: (T_2[K_2] extends infer T_3 ? { [K_3 in keyof T_3]?: (T_3[K_3] extends infer T_4 ? { [K_4 in keyof T_4]?: (T_4[K_4] extends infer T_5 ? { [K_5 in keyof T_5]?: (T_5[K_5] extends infer T_6 ? { [K_6 in keyof T_6]?: (T_6[K_6] extends infer T_7 ? { [K_7 in keyof T_7]?: (T_7[K_7] extends infer T_8 ? { [K_8 in keyof T_8]?: (T_8[K_8] extends infer T_9 ? { [K_9 in keyof T_9]?: (T_9[K_9] extends infer T_10 ? { [K_10 in keyof T_10]?: (T_10[K_10] extends infer T_11 ? { [K_11 in keyof T_11]?: /*elided*/ any | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) & Record<string, any>>, never> & ((this: UnresolvedContext<TContext["config"]>) => _stryke_types_base.MaybePromise<(TContext["config"] extends infer T_1 ? { [K in keyof T_1]?: (T_1[K] extends infer T_2 ? { [K_2 in keyof T_2]?: (T_2[K_2] extends infer T_3 ? { [K_3 in keyof T_3]?: (T_3[K_3] extends infer T_4 ? { [K_4 in keyof T_4]?: (T_4[K_4] extends infer T_5 ? { [K_5 in keyof T_5]?: (T_5[K_5] extends infer T_6 ? { [K_6 in keyof T_6]?: (T_6[K_6] extends infer T_7 ? { [K_7 in keyof T_7]?: (T_7[K_7] extends infer T_8 ? { [K_8 in keyof T_8]?: (T_8[K_8] extends infer T_9 ? { [K_9 in keyof T_9]?: (T_9[K_9] extends infer T_10 ? { [K_10 in keyof T_10]?: (T_10[K_10] extends infer T_11 ? { [K_11 in keyof T_11]?: /*elided*/ any | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) & Record<string, any>>)) | ((this: TContext) => _stryke_types_base.MaybePromise<void>) | ((this: TContext, name: string, environment: EnvironmentConfig) => _stryke_types_base.MaybePromise<Partial<EnvironmentResolvedConfig> | undefined | null>) | ((this: TContext) => _stryke_types_base.MaybePromise<void>) | ((this: TContext, code: string) => _stryke_types_base.MaybePromise<TypesResult | string | undefined | null>) | ((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext) => _stryke_types_base.MaybePromise<void>) | ((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext) => _stryke_types_base.MaybePromise<void>) | ((this: TContext) => _stryke_types_base.MaybePromise<void>)>;
|
|
114
112
|
} | {
|
|
115
|
-
[x: string]: OmitThisParameter<((this:
|
|
113
|
+
[x: string]: OmitThisParameter<((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, code: string, id: string) => _stryke_types_base.MaybePromise<unplugin.TransformResult>) | ((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string) => _stryke_types_base.MaybePromise<rollup.LoadResult>) | ((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string, importer: string | undefined, options: {
|
|
116
114
|
isEntry: boolean;
|
|
117
|
-
}) => _stryke_types_base.MaybePromise<string | unplugin.ExternalIdResult | null | undefined>) & ((this:
|
|
118
|
-
isEntry: boolean;
|
|
119
|
-
}) => _stryke_types_base.MaybePromise<string | unplugin.ExternalIdResult | null | undefined>)) | ((this: TContext, name: string, environment: EnvironmentConfig) => _stryke_types_base.MaybePromise<Partial<EnvironmentResolvedConfig> | undefined | null>) | ((this: TContext) => _stryke_types_base.MaybePromise<void>) | ((this: TContext, code: string) => _stryke_types_base.MaybePromise<TypesResult | string | undefined | null>) | ((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext) => _stryke_types_base.MaybePromise<void>) | ((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext) => _stryke_types_base.MaybePromise<void>) | ((this: TContext) => _stryke_types_base.MaybePromise<void>)>;
|
|
115
|
+
}) => _stryke_types_base.MaybePromise<string | unplugin.ExternalIdResult | null | undefined>) | ((this: UnresolvedContext<TContext["config"]>) => _stryke_types_base.MaybePromise<(TContext["config"] extends infer T_1 ? { [K in keyof T_1]?: (T_1[K] extends infer T_2 ? { [K_2 in keyof T_2]?: (T_2[K_2] extends infer T_3 ? { [K_3 in keyof T_3]?: (T_3[K_3] extends infer T_4 ? { [K_4 in keyof T_4]?: (T_4[K_4] extends infer T_5 ? { [K_5 in keyof T_5]?: (T_5[K_5] extends infer T_6 ? { [K_6 in keyof T_6]?: (T_6[K_6] extends infer T_7 ? { [K_7 in keyof T_7]?: (T_7[K_7] extends infer T_8 ? { [K_8 in keyof T_8]?: (T_8[K_8] extends infer T_9 ? { [K_9 in keyof T_9]?: (T_9[K_9] extends infer T_10 ? { [K_10 in keyof T_10]?: (T_10[K_10] extends infer T_11 ? { [K_11 in keyof T_11]?: /*elided*/ any | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) & Record<string, any>>) | (((this: UnresolvedContext<TContext["config"]>) => _stryke_types_base.MaybePromise<(TContext["config"] extends infer T_1 ? { [K in keyof T_1]?: (T_1[K] extends infer T_2 ? { [K_2 in keyof T_2]?: (T_2[K_2] extends infer T_3 ? { [K_3 in keyof T_3]?: (T_3[K_3] extends infer T_4 ? { [K_4 in keyof T_4]?: (T_4[K_4] extends infer T_5 ? { [K_5 in keyof T_5]?: (T_5[K_5] extends infer T_6 ? { [K_6 in keyof T_6]?: (T_6[K_6] extends infer T_7 ? { [K_7 in keyof T_7]?: (T_7[K_7] extends infer T_8 ? { [K_8 in keyof T_8]?: (T_8[K_8] extends infer T_9 ? { [K_9 in keyof T_9]?: (T_9[K_9] extends infer T_10 ? { [K_10 in keyof T_10]?: (T_10[K_10] extends infer T_11 ? { [K_11 in keyof T_11]?: /*elided*/ any | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) & Record<string, any>>) & ((this: UnresolvedContext<TContext["config"]>) => _stryke_types_base.MaybePromise<(TContext["config"] extends infer T_1 ? { [K in keyof T_1]?: (T_1[K] extends infer T_2 ? { [K_2 in keyof T_2]?: (T_2[K_2] extends infer T_3 ? { [K_3 in keyof T_3]?: (T_3[K_3] extends infer T_4 ? { [K_4 in keyof T_4]?: (T_4[K_4] extends infer T_5 ? { [K_5 in keyof T_5]?: (T_5[K_5] extends infer T_6 ? { [K_6 in keyof T_6]?: (T_6[K_6] extends infer T_7 ? { [K_7 in keyof T_7]?: (T_7[K_7] extends infer T_8 ? { [K_8 in keyof T_8]?: (T_8[K_8] extends infer T_9 ? { [K_9 in keyof T_9]?: (T_9[K_9] extends infer T_10 ? { [K_10 in keyof T_10]?: (T_10[K_10] extends infer T_11 ? { [K_11 in keyof T_11]?: /*elided*/ any | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) | undefined; } : never) & Record<string, any>>)) | ((this: TContext) => _stryke_types_base.MaybePromise<void>) | ((this: TContext, name: string, environment: EnvironmentConfig) => _stryke_types_base.MaybePromise<Partial<EnvironmentResolvedConfig> | undefined | null>) | ((this: TContext) => _stryke_types_base.MaybePromise<void>) | ((this: TContext, code: string) => _stryke_types_base.MaybePromise<TypesResult | string | undefined | null>) | ((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext) => _stryke_types_base.MaybePromise<void>) | ((this: unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext) => _stryke_types_base.MaybePromise<void>) | ((this: TContext) => _stryke_types_base.MaybePromise<void>)>;
|
|
120
116
|
normal?: undefined;
|
|
121
117
|
} | undefined;
|
|
122
118
|
/**
|
|
123
119
|
* Check if a hook is external.
|
|
124
120
|
*
|
|
125
|
-
* @param
|
|
121
|
+
* @param keys - The name of the hook to check.
|
|
126
122
|
* @returns True if the hook is external, false otherwise.
|
|
127
123
|
*/
|
|
128
|
-
declare function
|
|
124
|
+
declare function isUnpluginHookKey<TUnpluginBuilderVariant extends UnpluginBuilderVariant = UnpluginBuilderVariant>(keys: string): keys is `${TUnpluginBuilderVariant}:${keyof UnpluginOptions[TUnpluginBuilderVariant] & string}`;
|
|
129
125
|
/**
|
|
130
126
|
* Check if a hook is internal.
|
|
131
127
|
*
|
|
132
|
-
* @param
|
|
128
|
+
* @param keys - The name of the hook to check.
|
|
129
|
+
* @returns True if the hook is external, false otherwise.
|
|
130
|
+
*/
|
|
131
|
+
declare function isPluginHookField<TContext extends PluginContext>(keys: string): keys is PluginHookFields<TContext>;
|
|
132
|
+
/**
|
|
133
|
+
* Check if a hook is external.
|
|
134
|
+
*
|
|
135
|
+
* @param field - The name of the hook to check.
|
|
133
136
|
* @returns True if the hook is external, false otherwise.
|
|
134
137
|
*/
|
|
135
|
-
declare function
|
|
138
|
+
declare function isUnpluginHookField<TUnpluginBuilderVariant extends UnpluginBuilderVariant = UnpluginBuilderVariant>(field: string): field is TUnpluginBuilderVariant;
|
|
136
139
|
/**
|
|
137
140
|
* Check if a plugin should be deduplicated.
|
|
138
141
|
*
|
|
@@ -149,7 +152,7 @@ declare function checkDedupe<TResolvedConfig extends ResolvedConfig = ResolvedCo
|
|
|
149
152
|
* @param pluginHook - The plugin hook to add
|
|
150
153
|
* @param hooksList - The list of hooks to add to
|
|
151
154
|
*/
|
|
152
|
-
declare function addPluginHook<TContext extends PluginContext = PluginContext>(context: TContext, plugin: Plugin<TContext>, pluginHook: PluginHook<AnyFunction>, hooksList:
|
|
155
|
+
declare function addPluginHook<TContext extends PluginContext = PluginContext, TField extends PluginHookFields<TContext> = PluginHookFields<TContext>, TList extends PluginHooksListItem<TContext, TField> = PluginHooksListItem<TContext, TField>>(context: TContext, plugin: Plugin<TContext>, pluginHook: PluginHook<AnyFunction>, hooksList: TList[]): void;
|
|
153
156
|
/**
|
|
154
157
|
* Check the provided {@link PluginConfig}, and return a stringified version of the invalid configuration. If an array is provided, check each item in the array.
|
|
155
158
|
*
|
|
@@ -157,5 +160,6 @@ declare function addPluginHook<TContext extends PluginContext = PluginContext>(c
|
|
|
157
160
|
* @returns Null if the configuration is valid, otherwise an array of stringified invalid configurations
|
|
158
161
|
*/
|
|
159
162
|
declare function findInvalidPluginConfig<TContext extends PluginContext = PluginContext<ResolvedConfig>>(config: PluginConfig<TContext>): string[] | null;
|
|
163
|
+
declare type __ΩGetHookHandlerReturnType = any[];
|
|
160
164
|
|
|
161
|
-
export { addPluginHook, checkDedupe, extractPluginHook, findInvalidPluginConfig, getHookHandler,
|
|
165
|
+
export { type GetHookHandlerReturnType, type __ΩGetHookHandlerReturnType, addPluginHook, checkDedupe, extractPluginHook, findInvalidPluginConfig, getHookHandler, isPlugin, isPluginConfig, isPluginConfigObject, isPluginConfigTuple, isPluginHook, isPluginHookField, isPluginHookFunction, isPluginHookObject, isUnpluginHookField, isUnpluginHookKey };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { addPluginHook, checkDedupe, extractPluginHook, findInvalidPluginConfig, getHookHandler,
|
|
1
|
+
export { addPluginHook, checkDedupe, extractPluginHook, findInvalidPluginConfig, getHookHandler, isPlugin, isPluginConfig, isPluginConfigObject, isPluginConfigTuple, isPluginHook, isPluginHookField, isPluginHookFunction, isPluginHookObject, isUnpluginHookField, isUnpluginHookKey } from './chunk-I3FSMSLD.js';
|
|
2
2
|
import './chunk-7QVYU63E.js';
|
|
3
3
|
//# sourceMappingURL=helpers.js.map
|
|
4
4
|
//# sourceMappingURL=helpers.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkDUIPLC7F_cjs = require('./chunk-DUIPLC7F.cjs');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var chunkARNNN4GS_cjs = require('./chunk-ARNNN4GS.cjs');
|
|
5
|
+
var chunk4FLR5DY5_cjs = require('./chunk-4FLR5DY5.cjs');
|
|
6
6
|
var chunkGH7PPING_cjs = require('./chunk-GH7PPING.cjs');
|
|
7
|
-
var
|
|
8
|
-
var
|
|
7
|
+
var chunk2I5L22QB_cjs = require('./chunk-2I5L22QB.cjs');
|
|
8
|
+
var chunk6YOLE5BT_cjs = require('./chunk-6YOLE5BT.cjs');
|
|
9
9
|
var chunkRBMEE2JC_cjs = require('./chunk-RBMEE2JC.cjs');
|
|
10
10
|
require('./chunk-PK6SKIKE.cjs');
|
|
11
11
|
|
|
@@ -21,11 +21,11 @@ Object.defineProperty(exports, "getWorkspaceName", {
|
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "enforceBuild", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkARNNN4GS_cjs.enforceBuild; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "extend", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunk4FLR5DY5_cjs.extend; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "getConfigPath", {
|
|
31
31
|
enumerable: true,
|
|
@@ -33,63 +33,67 @@ Object.defineProperty(exports, "getConfigPath", {
|
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "merge", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunk2I5L22QB_cjs.merge; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "addPluginHook", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunk6YOLE5BT_cjs.addPluginHook; }
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "checkDedupe", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunk6YOLE5BT_cjs.checkDedupe; }
|
|
45
45
|
});
|
|
46
46
|
Object.defineProperty(exports, "extractPluginHook", {
|
|
47
47
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunk6YOLE5BT_cjs.extractPluginHook; }
|
|
49
49
|
});
|
|
50
50
|
Object.defineProperty(exports, "findInvalidPluginConfig", {
|
|
51
51
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunk6YOLE5BT_cjs.findInvalidPluginConfig; }
|
|
53
53
|
});
|
|
54
54
|
Object.defineProperty(exports, "getHookHandler", {
|
|
55
55
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
57
|
-
});
|
|
58
|
-
Object.defineProperty(exports, "isHookExternal", {
|
|
59
|
-
enumerable: true,
|
|
60
|
-
get: function () { return chunkBWAX3NRG_cjs.isHookExternal; }
|
|
61
|
-
});
|
|
62
|
-
Object.defineProperty(exports, "isHookInternal", {
|
|
63
|
-
enumerable: true,
|
|
64
|
-
get: function () { return chunkBWAX3NRG_cjs.isHookInternal; }
|
|
56
|
+
get: function () { return chunk6YOLE5BT_cjs.getHookHandler; }
|
|
65
57
|
});
|
|
66
58
|
Object.defineProperty(exports, "isPlugin", {
|
|
67
59
|
enumerable: true,
|
|
68
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunk6YOLE5BT_cjs.isPlugin; }
|
|
69
61
|
});
|
|
70
62
|
Object.defineProperty(exports, "isPluginConfig", {
|
|
71
63
|
enumerable: true,
|
|
72
|
-
get: function () { return
|
|
64
|
+
get: function () { return chunk6YOLE5BT_cjs.isPluginConfig; }
|
|
73
65
|
});
|
|
74
66
|
Object.defineProperty(exports, "isPluginConfigObject", {
|
|
75
67
|
enumerable: true,
|
|
76
|
-
get: function () { return
|
|
68
|
+
get: function () { return chunk6YOLE5BT_cjs.isPluginConfigObject; }
|
|
77
69
|
});
|
|
78
70
|
Object.defineProperty(exports, "isPluginConfigTuple", {
|
|
79
71
|
enumerable: true,
|
|
80
|
-
get: function () { return
|
|
72
|
+
get: function () { return chunk6YOLE5BT_cjs.isPluginConfigTuple; }
|
|
81
73
|
});
|
|
82
74
|
Object.defineProperty(exports, "isPluginHook", {
|
|
83
75
|
enumerable: true,
|
|
84
|
-
get: function () { return
|
|
76
|
+
get: function () { return chunk6YOLE5BT_cjs.isPluginHook; }
|
|
77
|
+
});
|
|
78
|
+
Object.defineProperty(exports, "isPluginHookField", {
|
|
79
|
+
enumerable: true,
|
|
80
|
+
get: function () { return chunk6YOLE5BT_cjs.isPluginHookField; }
|
|
85
81
|
});
|
|
86
82
|
Object.defineProperty(exports, "isPluginHookFunction", {
|
|
87
83
|
enumerable: true,
|
|
88
|
-
get: function () { return
|
|
84
|
+
get: function () { return chunk6YOLE5BT_cjs.isPluginHookFunction; }
|
|
89
85
|
});
|
|
90
86
|
Object.defineProperty(exports, "isPluginHookObject", {
|
|
91
87
|
enumerable: true,
|
|
92
|
-
get: function () { return
|
|
88
|
+
get: function () { return chunk6YOLE5BT_cjs.isPluginHookObject; }
|
|
89
|
+
});
|
|
90
|
+
Object.defineProperty(exports, "isUnpluginHookField", {
|
|
91
|
+
enumerable: true,
|
|
92
|
+
get: function () { return chunk6YOLE5BT_cjs.isUnpluginHookField; }
|
|
93
|
+
});
|
|
94
|
+
Object.defineProperty(exports, "isUnpluginHookKey", {
|
|
95
|
+
enumerable: true,
|
|
96
|
+
get: function () { return chunk6YOLE5BT_cjs.isUnpluginHookKey; }
|
|
93
97
|
});
|
|
94
98
|
Object.defineProperty(exports, "replacePathTokens", {
|
|
95
99
|
enumerable: true,
|
|
@@ -2,10 +2,10 @@ export { getOrganizationName, getWorkspaceName } from './context-helpers.cjs';
|
|
|
2
2
|
export { enforceBuild } from './enforce.cjs';
|
|
3
3
|
export { extend } from './extend.cjs';
|
|
4
4
|
export { getConfigPath } from './get-config-path.cjs';
|
|
5
|
-
export { addPluginHook, checkDedupe, extractPluginHook, findInvalidPluginConfig, getHookHandler,
|
|
5
|
+
export { GetHookHandlerReturnType, __ΩGetHookHandlerReturnType, addPluginHook, checkDedupe, extractPluginHook, findInvalidPluginConfig, getHookHandler, isPlugin, isPluginConfig, isPluginConfigObject, isPluginConfigTuple, isPluginHook, isPluginHookField, isPluginHookFunction, isPluginHookObject, isUnpluginHookField, isUnpluginHookKey } from './helpers.cjs';
|
|
6
6
|
export { MergeResult, __ΩMergeResult, merge } from './merge.cjs';
|
|
7
7
|
export { replacePathTokens } from './paths.cjs';
|
|
8
|
-
import './context-
|
|
8
|
+
import './context-BQTlTcfV.cjs';
|
|
9
9
|
import '@stryke/env/get-env-paths';
|
|
10
10
|
import '@stryke/http/fetch';
|
|
11
11
|
import '@stryke/types/base';
|
|
@@ -24,7 +24,16 @@ import '@stryke/types/configuration';
|
|
|
24
24
|
import '@stryke/types/file';
|
|
25
25
|
import 'compatx';
|
|
26
26
|
import 'vite';
|
|
27
|
+
import '@farmfe/core';
|
|
28
|
+
import '@rspack/core';
|
|
29
|
+
import '@storm-software/tsup/types';
|
|
30
|
+
import '@storm-software/unbuild/types';
|
|
31
|
+
import 'esbuild';
|
|
32
|
+
import 'rolldown';
|
|
33
|
+
import 'rollup';
|
|
34
|
+
import 'tsdown';
|
|
35
|
+
import 'webpack';
|
|
27
36
|
import '@stryke/fs/resolve';
|
|
37
|
+
import '@stryke/types/array';
|
|
28
38
|
import '@stryke/types/tsconfig';
|
|
29
39
|
import 'typescript';
|
|
30
|
-
import '@stryke/types/array';
|
|
@@ -2,10 +2,10 @@ export { getOrganizationName, getWorkspaceName } from './context-helpers.js';
|
|
|
2
2
|
export { enforceBuild } from './enforce.js';
|
|
3
3
|
export { extend } from './extend.js';
|
|
4
4
|
export { getConfigPath } from './get-config-path.js';
|
|
5
|
-
export { addPluginHook, checkDedupe, extractPluginHook, findInvalidPluginConfig, getHookHandler,
|
|
5
|
+
export { GetHookHandlerReturnType, __ΩGetHookHandlerReturnType, addPluginHook, checkDedupe, extractPluginHook, findInvalidPluginConfig, getHookHandler, isPlugin, isPluginConfig, isPluginConfigObject, isPluginConfigTuple, isPluginHook, isPluginHookField, isPluginHookFunction, isPluginHookObject, isUnpluginHookField, isUnpluginHookKey } from './helpers.js';
|
|
6
6
|
export { MergeResult, __ΩMergeResult, merge } from './merge.js';
|
|
7
7
|
export { replacePathTokens } from './paths.js';
|
|
8
|
-
import './context-
|
|
8
|
+
import './context-BQTlTcfV.js';
|
|
9
9
|
import '@stryke/env/get-env-paths';
|
|
10
10
|
import '@stryke/http/fetch';
|
|
11
11
|
import '@stryke/types/base';
|
|
@@ -24,7 +24,16 @@ import '@stryke/types/configuration';
|
|
|
24
24
|
import '@stryke/types/file';
|
|
25
25
|
import 'compatx';
|
|
26
26
|
import 'vite';
|
|
27
|
+
import '@farmfe/core';
|
|
28
|
+
import '@rspack/core';
|
|
29
|
+
import '@storm-software/tsup/types';
|
|
30
|
+
import '@storm-software/unbuild/types';
|
|
31
|
+
import 'esbuild';
|
|
32
|
+
import 'rolldown';
|
|
33
|
+
import 'rollup';
|
|
34
|
+
import 'tsdown';
|
|
35
|
+
import 'webpack';
|
|
27
36
|
import '@stryke/fs/resolve';
|
|
37
|
+
import '@stryke/types/array';
|
|
28
38
|
import '@stryke/types/tsconfig';
|
|
29
39
|
import 'typescript';
|
|
30
|
-
import '@stryke/types/array';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export { getOrganizationName, getWorkspaceName } from './chunk-G32M72GJ.js';
|
|
2
|
-
export { enforceBuild } from './chunk-
|
|
3
|
-
export { extend } from './chunk-
|
|
2
|
+
export { enforceBuild } from './chunk-Z2BYI6KW.js';
|
|
3
|
+
export { extend } from './chunk-RZAQTG45.js';
|
|
4
4
|
export { getConfigPath } from './chunk-H7GJUBNY.js';
|
|
5
|
-
export { merge } from './chunk-
|
|
6
|
-
export { addPluginHook, checkDedupe, extractPluginHook, findInvalidPluginConfig, getHookHandler,
|
|
5
|
+
export { merge } from './chunk-XDURJUGS.js';
|
|
6
|
+
export { addPluginHook, checkDedupe, extractPluginHook, findInvalidPluginConfig, getHookHandler, isPlugin, isPluginConfig, isPluginConfigObject, isPluginConfigTuple, isPluginHook, isPluginHookField, isPluginHookFunction, isPluginHookObject, isUnpluginHookField, isUnpluginHookKey } from './chunk-I3FSMSLD.js';
|
|
7
7
|
export { replacePathTokens } from './chunk-NRJ5QYX2.js';
|
|
8
8
|
import './chunk-7QVYU63E.js';
|
|
9
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunk2I5L22QB_cjs = require('./chunk-2I5L22QB.cjs');
|
|
4
|
+
require('./chunk-6YOLE5BT.cjs');
|
|
5
5
|
require('./chunk-PK6SKIKE.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "merge", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunk2I5L22QB_cjs.merge; }
|
|
12
12
|
});
|
|
13
13
|
//# sourceMappingURL=merge.cjs.map
|
|
14
14
|
//# sourceMappingURL=merge.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PluginContext, a as Plugin, d as PartialPlugin } from './context-
|
|
1
|
+
import { P as PluginContext, a as Plugin, d as PartialPlugin } from './context-BQTlTcfV.cjs';
|
|
2
2
|
import '@stryke/env/get-env-paths';
|
|
3
3
|
import '@stryke/http/fetch';
|
|
4
4
|
import '@stryke/types/base';
|
|
@@ -17,10 +17,19 @@ import '@stryke/types/configuration';
|
|
|
17
17
|
import '@stryke/types/file';
|
|
18
18
|
import 'compatx';
|
|
19
19
|
import 'vite';
|
|
20
|
+
import '@farmfe/core';
|
|
21
|
+
import '@rspack/core';
|
|
22
|
+
import '@storm-software/tsup/types';
|
|
23
|
+
import '@storm-software/unbuild/types';
|
|
24
|
+
import 'esbuild';
|
|
25
|
+
import 'rolldown';
|
|
26
|
+
import 'rollup';
|
|
27
|
+
import 'tsdown';
|
|
28
|
+
import 'webpack';
|
|
20
29
|
import '@stryke/fs/resolve';
|
|
30
|
+
import '@stryke/types/array';
|
|
21
31
|
import '@stryke/types/tsconfig';
|
|
22
32
|
import 'typescript';
|
|
23
|
-
import '@stryke/types/array';
|
|
24
33
|
|
|
25
34
|
type MergeResult<TContext extends PluginContext, TPluginA extends Plugin<TContext> | PartialPlugin<TContext>, TPluginB extends Plugin<TContext> | PartialPlugin<TContext>> = TPluginA extends Plugin<TContext> ? Plugin<TContext> : TPluginB extends Plugin<TContext> ? Plugin<TContext> : PartialPlugin<TContext>;
|
|
26
35
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PluginContext, a as Plugin, d as PartialPlugin } from './context-
|
|
1
|
+
import { P as PluginContext, a as Plugin, d as PartialPlugin } from './context-BQTlTcfV.js';
|
|
2
2
|
import '@stryke/env/get-env-paths';
|
|
3
3
|
import '@stryke/http/fetch';
|
|
4
4
|
import '@stryke/types/base';
|
|
@@ -17,10 +17,19 @@ import '@stryke/types/configuration';
|
|
|
17
17
|
import '@stryke/types/file';
|
|
18
18
|
import 'compatx';
|
|
19
19
|
import 'vite';
|
|
20
|
+
import '@farmfe/core';
|
|
21
|
+
import '@rspack/core';
|
|
22
|
+
import '@storm-software/tsup/types';
|
|
23
|
+
import '@storm-software/unbuild/types';
|
|
24
|
+
import 'esbuild';
|
|
25
|
+
import 'rolldown';
|
|
26
|
+
import 'rollup';
|
|
27
|
+
import 'tsdown';
|
|
28
|
+
import 'webpack';
|
|
20
29
|
import '@stryke/fs/resolve';
|
|
30
|
+
import '@stryke/types/array';
|
|
21
31
|
import '@stryke/types/tsconfig';
|
|
22
32
|
import 'typescript';
|
|
23
|
-
import '@stryke/types/array';
|
|
24
33
|
|
|
25
34
|
type MergeResult<TContext extends PluginContext, TPluginA extends Plugin<TContext> | PartialPlugin<TContext>, TPluginB extends Plugin<TContext> | PartialPlugin<TContext>> = TPluginA extends Plugin<TContext> ? Plugin<TContext> : TPluginB extends Plugin<TContext> ? Plugin<TContext> : PartialPlugin<TContext>;
|
|
26
35
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IsUndefined } from '@stryke/types/base';
|
|
2
|
-
import { U as UnresolvedContext } from './context-
|
|
2
|
+
import { U as UnresolvedContext } from './context-BQTlTcfV.cjs';
|
|
3
3
|
import '@stryke/env/get-env-paths';
|
|
4
4
|
import '@stryke/http/fetch';
|
|
5
5
|
import '@stryke/types/package-json';
|
|
@@ -17,10 +17,19 @@ import '@stryke/types/configuration';
|
|
|
17
17
|
import '@stryke/types/file';
|
|
18
18
|
import 'compatx';
|
|
19
19
|
import 'vite';
|
|
20
|
+
import '@farmfe/core';
|
|
21
|
+
import '@rspack/core';
|
|
22
|
+
import '@storm-software/tsup/types';
|
|
23
|
+
import '@storm-software/unbuild/types';
|
|
24
|
+
import 'esbuild';
|
|
25
|
+
import 'rolldown';
|
|
26
|
+
import 'rollup';
|
|
27
|
+
import 'tsdown';
|
|
28
|
+
import 'webpack';
|
|
20
29
|
import '@stryke/fs/resolve';
|
|
30
|
+
import '@stryke/types/array';
|
|
21
31
|
import '@stryke/types/tsconfig';
|
|
22
32
|
import 'typescript';
|
|
23
|
-
import '@stryke/types/array';
|
|
24
33
|
|
|
25
34
|
/**
|
|
26
35
|
* Replaces tokens in the given path string with their corresponding values from the context.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IsUndefined } from '@stryke/types/base';
|
|
2
|
-
import { U as UnresolvedContext } from './context-
|
|
2
|
+
import { U as UnresolvedContext } from './context-BQTlTcfV.js';
|
|
3
3
|
import '@stryke/env/get-env-paths';
|
|
4
4
|
import '@stryke/http/fetch';
|
|
5
5
|
import '@stryke/types/package-json';
|
|
@@ -17,10 +17,19 @@ import '@stryke/types/configuration';
|
|
|
17
17
|
import '@stryke/types/file';
|
|
18
18
|
import 'compatx';
|
|
19
19
|
import 'vite';
|
|
20
|
+
import '@farmfe/core';
|
|
21
|
+
import '@rspack/core';
|
|
22
|
+
import '@storm-software/tsup/types';
|
|
23
|
+
import '@storm-software/unbuild/types';
|
|
24
|
+
import 'esbuild';
|
|
25
|
+
import 'rolldown';
|
|
26
|
+
import 'rollup';
|
|
27
|
+
import 'tsdown';
|
|
28
|
+
import 'webpack';
|
|
20
29
|
import '@stryke/fs/resolve';
|
|
30
|
+
import '@stryke/types/array';
|
|
21
31
|
import '@stryke/types/tsconfig';
|
|
22
32
|
import 'typescript';
|
|
23
|
-
import '@stryke/types/array';
|
|
24
33
|
|
|
25
34
|
/**
|
|
26
35
|
* Replaces tokens in the given path string with their corresponding values from the context.
|
package/dist/rolldown.cjs
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
5
|
+
var chunkFON7JDQF_cjs = require('./chunk-FON7JDQF.cjs');
|
|
6
|
+
require('./chunk-4PIVB3SY.cjs');
|
|
7
|
+
require('./chunk-E4QAO32M.cjs');
|
|
8
|
+
require('./chunk-B6DVCLP5.cjs');
|
|
9
|
+
require('./chunk-V5WOGN7O.cjs');
|
|
10
10
|
require('./chunk-Z6ARQDHR.cjs');
|
|
11
11
|
require('./chunk-PK6SKIKE.cjs');
|
|
12
12
|
|
|
@@ -14,15 +14,15 @@ require('./chunk-PK6SKIKE.cjs');
|
|
|
14
14
|
|
|
15
15
|
Object.defineProperty(exports, "default", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkFON7JDQF_cjs.rolldown_default; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "module.exports", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkFON7JDQF_cjs.rolldown; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "rolldown", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkFON7JDQF_cjs.rolldown; }
|
|
26
26
|
});
|
|
27
27
|
//# sourceMappingURL=rolldown.cjs.map
|
|
28
28
|
//# sourceMappingURL=rolldown.cjs.map
|
package/dist/rolldown.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as _rolldown from 'rolldown';
|
|
2
|
-
import {
|
|
2
|
+
import { Z as RolldownUserConfig } from './api-CLQePK25.cjs';
|
|
3
|
+
import '@stryke/types/base';
|
|
3
4
|
import '@stryke/env/get-env-paths';
|
|
4
5
|
import '@stryke/http/fetch';
|
|
5
|
-
import '@stryke/types/base';
|
|
6
6
|
import '@stryke/types/package-json';
|
|
7
7
|
import 'jest-worker';
|
|
8
8
|
import 'jiti';
|
|
@@ -23,18 +23,19 @@ import 'c12';
|
|
|
23
23
|
import 'compatx';
|
|
24
24
|
import 'vite';
|
|
25
25
|
import '@babel/helper-plugin-utils';
|
|
26
|
-
import './types/fs.cjs';
|
|
27
|
-
import '@stryke/fs/resolve';
|
|
28
|
-
import '@stryke/types/array';
|
|
29
26
|
import './types/build.cjs';
|
|
30
27
|
import '@farmfe/core';
|
|
31
28
|
import '@rspack/core';
|
|
32
29
|
import '@storm-software/tsup/types';
|
|
33
30
|
import '@storm-software/unbuild/types';
|
|
31
|
+
import 'bun';
|
|
34
32
|
import 'esbuild';
|
|
35
33
|
import 'rollup';
|
|
36
34
|
import 'tsdown';
|
|
37
35
|
import 'webpack';
|
|
36
|
+
import './types/fs.cjs';
|
|
37
|
+
import '@stryke/fs/resolve';
|
|
38
|
+
import '@stryke/types/array';
|
|
38
39
|
import './types/tsconfig.cjs';
|
|
39
40
|
import '@stryke/types/tsconfig';
|
|
40
41
|
import 'typescript';
|