powerlines 0.16.0 → 0.18.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/api.d.cts +2 -2
- package/dist/api.d.ts +2 -2
- package/dist/astro.d.cts +1 -1
- package/dist/astro.d.ts +1 -1
- package/dist/config.d.cts +3 -5
- package/dist/config.d.ts +3 -5
- package/dist/esbuild.d.cts +1 -1
- package/dist/esbuild.d.ts +1 -1
- package/dist/farm.d.cts +1 -1
- package/dist/farm.d.ts +1 -1
- package/dist/{hooks-DcH9z5L5.d.cts → hooks-BDXmrP9O.d.cts} +1 -1
- package/dist/{hooks-ByM-4_UN.d.ts → hooks-BMy1XRpA.d.ts} +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/plugin-utils/chunk-432MQOUZ.js +21 -0
- package/dist/plugin-utils/chunk-5TL6KEQ5.cjs +33 -0
- package/dist/plugin-utils/chunk-75UVEMIV.cjs +23 -0
- package/dist/plugin-utils/chunk-IHME6YWJ.js +28 -0
- package/dist/plugin-utils/chunk-WEIEQXIJ.cjs +30 -0
- package/dist/plugin-utils/chunk-YDYJAGMP.js +27 -0
- package/dist/plugin-utils/{config-ClPkPCYC.d.cts → config-BR2ZZoaP.d.cts} +5 -2
- package/dist/plugin-utils/{config-ClPkPCYC.d.ts → config-BR2ZZoaP.d.ts} +5 -2
- package/dist/plugin-utils/enforce.cjs +14 -0
- package/dist/plugin-utils/enforce.d.cts +32 -0
- package/dist/plugin-utils/enforce.d.ts +32 -0
- package/dist/plugin-utils/enforce.js +5 -0
- package/dist/plugin-utils/extend.cjs +5 -3
- package/dist/plugin-utils/extend.d.cts +6 -5
- package/dist/plugin-utils/extend.d.ts +6 -5
- package/dist/plugin-utils/extend.js +3 -1
- package/dist/plugin-utils/get-config-path.d.cts +1 -1
- package/dist/plugin-utils/get-config-path.d.ts +1 -1
- package/dist/plugin-utils/helpers.d.cts +1 -1
- package/dist/plugin-utils/helpers.d.ts +1 -1
- package/dist/plugin-utils/index.cjs +13 -3
- package/dist/plugin-utils/index.d.cts +4 -2
- package/dist/plugin-utils/index.d.ts +4 -2
- package/dist/plugin-utils/index.js +3 -1
- package/dist/plugin-utils/merge.cjs +12 -0
- package/dist/plugin-utils/merge.d.cts +33 -0
- package/dist/plugin-utils/merge.d.ts +33 -0
- package/dist/plugin-utils/merge.js +3 -0
- package/dist/plugin-utils/paths.d.cts +1 -1
- package/dist/plugin-utils/paths.d.ts +1 -1
- package/dist/{resolved-CugLn_3B.d.cts → resolved-9OdFeVV0.d.cts} +5 -3
- package/dist/{resolved-DnI1mqEb.d.ts → resolved-Bgn0EfLS.d.ts} +5 -3
- package/dist/rolldown.d.cts +1 -1
- package/dist/rolldown.d.ts +1 -1
- package/dist/rollup.d.cts +1 -1
- package/dist/rollup.d.ts +1 -1
- package/dist/rspack.d.cts +1 -1
- package/dist/rspack.d.ts +1 -1
- package/dist/types/babel.d.cts +1 -1
- package/dist/types/babel.d.ts +1 -1
- package/dist/types/build.d.cts +6 -6
- package/dist/types/build.d.ts +6 -6
- package/dist/types/commands.d.cts +1 -1
- package/dist/types/commands.d.ts +1 -1
- package/dist/types/config.d.cts +1 -1
- package/dist/types/config.d.ts +1 -1
- package/dist/types/context.d.cts +1 -1
- package/dist/types/context.d.ts +1 -1
- package/dist/types/hooks.d.cts +1 -1
- package/dist/types/hooks.d.ts +1 -1
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/internal.d.cts +2 -2
- package/dist/types/internal.d.ts +2 -2
- package/dist/types/plugin.d.cts +1 -1
- package/dist/types/plugin.d.ts +1 -1
- package/dist/types/resolved.d.cts +1 -1
- package/dist/types/resolved.d.ts +1 -1
- package/dist/types/unplugin.d.cts +1 -1
- package/dist/types/unplugin.d.ts +1 -1
- package/dist/unloader.d.cts +1 -1
- package/dist/unloader.d.ts +1 -1
- package/dist/unplugin.d.cts +2 -2
- package/dist/unplugin.d.ts +2 -2
- package/dist/vite.d.cts +1 -1
- package/dist/vite.d.ts +1 -1
- package/dist/webpack.d.cts +1 -1
- package/dist/webpack.d.ts +1 -1
- package/package.json +3 -3
- package/dist/plugin-utils/chunk-3G5FJKN2.js +0 -12
- package/dist/plugin-utils/chunk-MIKPJJNG.cjs +0 -18
package/dist/api.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CallHookOptions } from './hooks-
|
|
2
|
-
import {
|
|
1
|
+
import { C as CallHookOptions } from './hooks-BDXmrP9O.cjs';
|
|
2
|
+
import { aQ as ResolvedConfig, ae as APIContext, z as InitialUserConfig, M as PrepareInlineConfig, J as NewInlineConfig, K as CleanInlineConfig, Q as BuildInlineConfig, X as LintInlineConfig, Y as DocsInlineConfig, Z as ReleaseInlineConfig, ap as HookKeys, ah as PluginContext, ag as EnvironmentContext, aw as InferHookParameters, av as InferHookReturnType } from './resolved-9OdFeVV0.cjs';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
package/dist/api.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CallHookOptions } from './hooks-
|
|
2
|
-
import {
|
|
1
|
+
import { C as CallHookOptions } from './hooks-BMy1XRpA.js';
|
|
2
|
+
import { aQ as ResolvedConfig, ae as APIContext, z as InitialUserConfig, M as PrepareInlineConfig, J as NewInlineConfig, K as CleanInlineConfig, Q as BuildInlineConfig, X as LintInlineConfig, Y as DocsInlineConfig, Z as ReleaseInlineConfig, ap as HookKeys, ah as PluginContext, ag as EnvironmentContext, aw as InferHookParameters, av as InferHookReturnType } from './resolved-Bgn0EfLS.js';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
package/dist/astro.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AstroUserConfig } from 'astro';
|
|
2
|
-
import {
|
|
2
|
+
import { aR as ViteResolvedConfig } from './resolved-9OdFeVV0.cjs';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
package/dist/astro.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AstroUserConfig } from 'astro';
|
|
2
|
-
import {
|
|
2
|
+
import { aR as ViteResolvedConfig } from './resolved-Bgn0EfLS.js';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
package/dist/config.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '
|
|
1
|
+
import { DeepPartial } from '@stryke/types/base';
|
|
2
|
+
import { U as UserConfig } from './resolved-9OdFeVV0.cjs';
|
|
3
3
|
import '@stryke/types/configuration';
|
|
4
4
|
import '@stryke/types/file';
|
|
5
5
|
import 'vite';
|
|
@@ -43,8 +43,6 @@ import 'unionfs';
|
|
|
43
43
|
* @remarks
|
|
44
44
|
* The function accepts a direct {@link UserConfig} object, or a function that returns it. The function receives a {@link ConfigEnv} object.
|
|
45
45
|
*/
|
|
46
|
-
declare function defineConfig(config:
|
|
47
|
-
[key: string]: any;
|
|
48
|
-
}): AnyUserConfig;
|
|
46
|
+
declare function defineConfig(config: Record<string, any> & DeepPartial<UserConfig>): UserConfig;
|
|
49
47
|
|
|
50
48
|
export { defineConfig };
|
package/dist/config.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '
|
|
1
|
+
import { DeepPartial } from '@stryke/types/base';
|
|
2
|
+
import { U as UserConfig } from './resolved-Bgn0EfLS.js';
|
|
3
3
|
import '@stryke/types/configuration';
|
|
4
4
|
import '@stryke/types/file';
|
|
5
5
|
import 'vite';
|
|
@@ -43,8 +43,6 @@ import 'unionfs';
|
|
|
43
43
|
* @remarks
|
|
44
44
|
* The function accepts a direct {@link UserConfig} object, or a function that returns it. The function receives a {@link ConfigEnv} object.
|
|
45
45
|
*/
|
|
46
|
-
declare function defineConfig(config:
|
|
47
|
-
[key: string]: any;
|
|
48
|
-
}): AnyUserConfig;
|
|
46
|
+
declare function defineConfig(config: Record<string, any> & DeepPartial<UserConfig>): UserConfig;
|
|
49
47
|
|
|
50
48
|
export { defineConfig };
|
package/dist/esbuild.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _esbuild from 'esbuild';
|
|
2
|
-
import {
|
|
2
|
+
import { w as ESBuildUserConfig } from './resolved-9OdFeVV0.cjs';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
package/dist/esbuild.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _esbuild from 'esbuild';
|
|
2
|
-
import {
|
|
2
|
+
import { w as ESBuildUserConfig } from './resolved-Bgn0EfLS.js';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
package/dist/farm.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _farmfe_core from '@farmfe/core';
|
|
2
|
-
import { F as FarmUserConfig } from './resolved-
|
|
2
|
+
import { F as FarmUserConfig } from './resolved-9OdFeVV0.cjs';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
package/dist/farm.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _farmfe_core from '@farmfe/core';
|
|
2
|
-
import { F as FarmUserConfig } from './resolved-
|
|
2
|
+
import { F as FarmUserConfig } from './resolved-Bgn0EfLS.js';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
package/dist/index.d.cts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { PowerlinesAPI } from './api.cjs';
|
|
2
2
|
export { default as plugins } from './unplugin.cjs';
|
|
3
3
|
export { defineConfig } from './config.cjs';
|
|
4
|
-
export {
|
|
4
|
+
export { ae as APIContext, $ as AnyUserConfig, B as BabelPluginPass, aM as BabelResolvedConfig, d as BabelTransformInput, b as BabelTransformPlugin, f as BabelTransformPluginBuilder, e as BabelTransformPluginBuilderParams, a as BabelTransformPluginFilter, c as BabelTransformPluginOptions, p as BabelUserConfig, q as BaseConfig, al as BaseHookKeys, ak as BaseHooks, ar as BaseHooksList, aq as BaseHooksListItem, aB as BasePluginHookFunctions, Q as BuildInlineConfig, aC as BuildPlugin, ai as BuildPluginContext, K as CleanInlineConfig, C as CommandType, i as Commands, r as CommonUserConfig, _ as ConfigEnv, ad as Context, g as DeclareBabelTransformPluginReturn, D as DefaultImportDefinition, Y as DocsInlineConfig, aU as ESBuildResolvedConfig, w as ESBuildUserConfig, E as EnvironmentConfig, ag as EnvironmentContext, af as EnvironmentContextPlugin, aN as EnvironmentResolvedConfig, an as ExternalHookKeys, am as ExternalHooks, as as ExternalHooksListItem, aE as ExternalPluginHookFunctions, aD as ExternalPluginHookFunctionsVariant, aZ as FarmResolvedConfig, F as FarmUserConfig, aA as GenerateTypesResult, ap as HookKeys, ao as Hooks, at as HooksList, I as ImportDefinition, h as ImportSpecifier, au as InferHookHandler, aw as InferHookParameters, av as InferHookReturnType, ax as InferHookThisType, a_ as InferResolvedConfig, y as InferUserConfig, ac as InitContextOptions, z as InitialUserConfig, H as InlineConfig, X as LintInlineConfig, L as LogFn, a4 as LogLevel, a6 as MetaInfo, N as NamedImportDefinition, J as NewInlineConfig, O as OutputConfig, aP as OutputResolvedConfig, aJ as PLUGIN_NON_HOOK_FIELDS, A as ParsedUserConfig, m as PartialPlugin, n as PartialPluginFactory, aI as Plugin, aH as PluginBuildPlugins, l as PluginConfig, k as PluginConfigObject, j as PluginConfigTuple, ah as PluginContext, P as PluginFactory, az as PluginHook, aF as PluginHookFunctions, ay as PluginHookObject, aG as PluginHooks, aK as PluginNonHookFields, G as PowerlinesCommand, M as PrepareInlineConfig, o as ProjectType, Z as ReleaseInlineConfig, aO as ResolvedAssetGlob, R as ResolvedBabelTransformPluginOptions, aQ as ResolvedConfig, aL as ResolvedEntryTypeDefinition, a7 as Resolver, aW as RolldownResolvedConfig, v as RolldownUserConfig, aV as RollupResolvedConfig, u as RollupUserConfig, aT as RspackResolvedConfig, t as RspackUserConfig, S as SUPPORTED_COMMANDS, ab as SelectHooksOptions, aj as SerializedVirtualFileSystem, a9 as SourceFile, a8 as TransformResult, aX as TsupResolvedConfig, T as TsupUserConfig, aY as UnbuildResolvedConfig, x as UnbuildUserConfig, aa as UnimportContext, U as UserConfig, a3 as UserConfigExport, a2 as UserConfigFn, a0 as UserConfigFnObject, a1 as UserConfigFnPromise, aR as ViteResolvedConfig, V as ViteUserConfig, aS as WebpackResolvedConfig, s as WebpackUserConfig, a5 as WorkerProcess, W as WorkspaceConfig } from './resolved-9OdFeVV0.cjs';
|
|
5
5
|
export { BuildConfig, BuildResolvedConfig, BuildVariant, ESBuildBuildConfig, ESBuildResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig, InferUnpluginVariant, RolldownBuildConfig, RolldownBuildOutputConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupBuildOutputConfig, RollupResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, UnbuildBuildConfig, UnbuildResolvedBuildConfig, UnpluginBuildVariant, ViteBuildConfig, ViteResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig } from './types/build.cjs';
|
|
6
6
|
export { DeepkitOptions, ParsedTypeScriptConfig, RawReflectionMode, ReflectionLevel, ReflectionMode, TSCompilerOptions, TSConfig } from './types/tsconfig.cjs';
|
|
7
7
|
export { MarkdownPageEvent, MarkdownRendererEvent } from './types/typedoc.cjs';
|
|
8
8
|
export { InferUnpluginOptions, StormStackUnpluginFactory, UnpluginUserConfig } from './types/unplugin.cjs';
|
|
9
9
|
export { MakeDirectoryOptions, NodeWriteFileOptions, OutputModeType, PowerLinesWriteFileData, PowerlinesWriteFileOptions, ResolveFSOptions, ResolvePathOptions, VirtualFile, VirtualFileExtension, VirtualFileSystemInterface, VirtualFileSystemMetadata, WriteFileData, WriteFileOptions, __VFS_CACHE__, __VFS_INIT__, __VFS_RESOLVER__, __VFS_REVERT__, __VFS_UNIFIED__, __VFS_VIRTUAL__ } from './types/vfs.cjs';
|
|
10
|
-
import './hooks-
|
|
10
|
+
import './hooks-BDXmrP9O.cjs';
|
|
11
11
|
import 'webpack';
|
|
12
12
|
import 'vite';
|
|
13
13
|
import 'unloader';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { PowerlinesAPI } from './api.js';
|
|
2
2
|
export { default as plugins } from './unplugin.js';
|
|
3
3
|
export { defineConfig } from './config.js';
|
|
4
|
-
export {
|
|
4
|
+
export { ae as APIContext, $ as AnyUserConfig, B as BabelPluginPass, aM as BabelResolvedConfig, d as BabelTransformInput, b as BabelTransformPlugin, f as BabelTransformPluginBuilder, e as BabelTransformPluginBuilderParams, a as BabelTransformPluginFilter, c as BabelTransformPluginOptions, p as BabelUserConfig, q as BaseConfig, al as BaseHookKeys, ak as BaseHooks, ar as BaseHooksList, aq as BaseHooksListItem, aB as BasePluginHookFunctions, Q as BuildInlineConfig, aC as BuildPlugin, ai as BuildPluginContext, K as CleanInlineConfig, C as CommandType, i as Commands, r as CommonUserConfig, _ as ConfigEnv, ad as Context, g as DeclareBabelTransformPluginReturn, D as DefaultImportDefinition, Y as DocsInlineConfig, aU as ESBuildResolvedConfig, w as ESBuildUserConfig, E as EnvironmentConfig, ag as EnvironmentContext, af as EnvironmentContextPlugin, aN as EnvironmentResolvedConfig, an as ExternalHookKeys, am as ExternalHooks, as as ExternalHooksListItem, aE as ExternalPluginHookFunctions, aD as ExternalPluginHookFunctionsVariant, aZ as FarmResolvedConfig, F as FarmUserConfig, aA as GenerateTypesResult, ap as HookKeys, ao as Hooks, at as HooksList, I as ImportDefinition, h as ImportSpecifier, au as InferHookHandler, aw as InferHookParameters, av as InferHookReturnType, ax as InferHookThisType, a_ as InferResolvedConfig, y as InferUserConfig, ac as InitContextOptions, z as InitialUserConfig, H as InlineConfig, X as LintInlineConfig, L as LogFn, a4 as LogLevel, a6 as MetaInfo, N as NamedImportDefinition, J as NewInlineConfig, O as OutputConfig, aP as OutputResolvedConfig, aJ as PLUGIN_NON_HOOK_FIELDS, A as ParsedUserConfig, m as PartialPlugin, n as PartialPluginFactory, aI as Plugin, aH as PluginBuildPlugins, l as PluginConfig, k as PluginConfigObject, j as PluginConfigTuple, ah as PluginContext, P as PluginFactory, az as PluginHook, aF as PluginHookFunctions, ay as PluginHookObject, aG as PluginHooks, aK as PluginNonHookFields, G as PowerlinesCommand, M as PrepareInlineConfig, o as ProjectType, Z as ReleaseInlineConfig, aO as ResolvedAssetGlob, R as ResolvedBabelTransformPluginOptions, aQ as ResolvedConfig, aL as ResolvedEntryTypeDefinition, a7 as Resolver, aW as RolldownResolvedConfig, v as RolldownUserConfig, aV as RollupResolvedConfig, u as RollupUserConfig, aT as RspackResolvedConfig, t as RspackUserConfig, S as SUPPORTED_COMMANDS, ab as SelectHooksOptions, aj as SerializedVirtualFileSystem, a9 as SourceFile, a8 as TransformResult, aX as TsupResolvedConfig, T as TsupUserConfig, aY as UnbuildResolvedConfig, x as UnbuildUserConfig, aa as UnimportContext, U as UserConfig, a3 as UserConfigExport, a2 as UserConfigFn, a0 as UserConfigFnObject, a1 as UserConfigFnPromise, aR as ViteResolvedConfig, V as ViteUserConfig, aS as WebpackResolvedConfig, s as WebpackUserConfig, a5 as WorkerProcess, W as WorkspaceConfig } from './resolved-Bgn0EfLS.js';
|
|
5
5
|
export { BuildConfig, BuildResolvedConfig, BuildVariant, ESBuildBuildConfig, ESBuildResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig, InferUnpluginVariant, RolldownBuildConfig, RolldownBuildOutputConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupBuildOutputConfig, RollupResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, UnbuildBuildConfig, UnbuildResolvedBuildConfig, UnpluginBuildVariant, ViteBuildConfig, ViteResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig } from './types/build.js';
|
|
6
6
|
export { DeepkitOptions, ParsedTypeScriptConfig, RawReflectionMode, ReflectionLevel, ReflectionMode, TSCompilerOptions, TSConfig } from './types/tsconfig.js';
|
|
7
7
|
export { MarkdownPageEvent, MarkdownRendererEvent } from './types/typedoc.js';
|
|
8
8
|
export { InferUnpluginOptions, StormStackUnpluginFactory, UnpluginUserConfig } from './types/unplugin.js';
|
|
9
9
|
export { MakeDirectoryOptions, NodeWriteFileOptions, OutputModeType, PowerLinesWriteFileData, PowerlinesWriteFileOptions, ResolveFSOptions, ResolvePathOptions, VirtualFile, VirtualFileExtension, VirtualFileSystemInterface, VirtualFileSystemMetadata, WriteFileData, WriteFileOptions, __VFS_CACHE__, __VFS_INIT__, __VFS_RESOLVER__, __VFS_REVERT__, __VFS_UNIFIED__, __VFS_VIRTUAL__ } from './types/vfs.js';
|
|
10
|
-
import './hooks-
|
|
10
|
+
import './hooks-BMy1XRpA.js';
|
|
11
11
|
import 'webpack';
|
|
12
12
|
import 'vite';
|
|
13
13
|
import 'unloader';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { extend } from './chunk-IHME6YWJ.js';
|
|
2
|
+
import { __name } from './chunk-SHUYVCID.js';
|
|
3
|
+
|
|
4
|
+
// src/plugin-utils/enforce.ts
|
|
5
|
+
function enforceVariant(plugin, variant) {
|
|
6
|
+
return extend(plugin, {
|
|
7
|
+
config: {
|
|
8
|
+
build: {
|
|
9
|
+
variant
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
configResolved() {
|
|
13
|
+
if (this.config.build.variant !== variant) {
|
|
14
|
+
throw new Error(`A plugin requires the build variant "${variant}", but received "${this.config.build.variant}". Please ensure the \`build.variant\` is set correctly in your configuration.`);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
__name(enforceVariant, "enforceVariant");
|
|
20
|
+
|
|
21
|
+
export { enforceVariant };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkMQOW6ENT_cjs = require('./chunk-MQOW6ENT.cjs');
|
|
4
|
+
var chunkUSNT2KNT_cjs = require('./chunk-USNT2KNT.cjs');
|
|
5
|
+
var defu = require('defu');
|
|
6
|
+
|
|
7
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
8
|
+
|
|
9
|
+
var defu__default = /*#__PURE__*/_interopDefault(defu);
|
|
10
|
+
|
|
11
|
+
var mergePlugin = defu.createDefu((obj, key, value) => {
|
|
12
|
+
if (chunkMQOW6ENT_cjs.isPluginHook(obj[key]) && chunkMQOW6ENT_cjs.isPluginHook(value)) {
|
|
13
|
+
obj[key] = {
|
|
14
|
+
...obj[key],
|
|
15
|
+
...value,
|
|
16
|
+
handler: /* @__PURE__ */ chunkUSNT2KNT_cjs.__name(async (...params) => {
|
|
17
|
+
const [resultA, resultB] = await Promise.all([
|
|
18
|
+
chunkMQOW6ENT_cjs.getHookHandler(obj[key])(...params),
|
|
19
|
+
chunkMQOW6ENT_cjs.getHookHandler(value)(...params)
|
|
20
|
+
]);
|
|
21
|
+
return resultB && resultA ? defu__default.default(resultA, resultB) : resultA || resultB;
|
|
22
|
+
}, "handler")
|
|
23
|
+
};
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
return false;
|
|
27
|
+
});
|
|
28
|
+
function merge(pluginA, pluginB) {
|
|
29
|
+
return mergePlugin(pluginA, pluginB);
|
|
30
|
+
}
|
|
31
|
+
chunkUSNT2KNT_cjs.__name(merge, "merge");
|
|
32
|
+
|
|
33
|
+
exports.merge = merge;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkWEIEQXIJ_cjs = require('./chunk-WEIEQXIJ.cjs');
|
|
4
|
+
var chunkUSNT2KNT_cjs = require('./chunk-USNT2KNT.cjs');
|
|
5
|
+
|
|
6
|
+
// src/plugin-utils/enforce.ts
|
|
7
|
+
function enforceVariant(plugin, variant) {
|
|
8
|
+
return chunkWEIEQXIJ_cjs.extend(plugin, {
|
|
9
|
+
config: {
|
|
10
|
+
build: {
|
|
11
|
+
variant
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
configResolved() {
|
|
15
|
+
if (this.config.build.variant !== variant) {
|
|
16
|
+
throw new Error(`A plugin requires the build variant "${variant}", but received "${this.config.build.variant}". Please ensure the \`build.variant\` is set correctly in your configuration.`);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
chunkUSNT2KNT_cjs.__name(enforceVariant, "enforceVariant");
|
|
22
|
+
|
|
23
|
+
exports.enforceVariant = enforceVariant;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { merge } from './chunk-YDYJAGMP.js';
|
|
2
|
+
import { __name } from './chunk-SHUYVCID.js';
|
|
3
|
+
import { isFunction } from '@stryke/type-checks/is-function';
|
|
4
|
+
|
|
5
|
+
function extend(plugin, extension) {
|
|
6
|
+
if (isFunction(plugin)) {
|
|
7
|
+
if (isFunction(extension)) {
|
|
8
|
+
return async (options) => {
|
|
9
|
+
const pluginResult = await Promise.resolve(plugin(options));
|
|
10
|
+
const extensionResult = await Promise.resolve(extension(options));
|
|
11
|
+
return merge(extensionResult, pluginResult);
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
return async (options) => {
|
|
15
|
+
const result = await Promise.resolve(plugin(options));
|
|
16
|
+
return merge(extension, result);
|
|
17
|
+
};
|
|
18
|
+
} else if (isFunction(extension)) {
|
|
19
|
+
return async (options) => {
|
|
20
|
+
const result = await Promise.resolve(extension(options));
|
|
21
|
+
return merge(plugin, result);
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
return merge(plugin, extension);
|
|
25
|
+
}
|
|
26
|
+
__name(extend, "extend");
|
|
27
|
+
|
|
28
|
+
export { extend };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk5TL6KEQ5_cjs = require('./chunk-5TL6KEQ5.cjs');
|
|
4
|
+
var chunkUSNT2KNT_cjs = require('./chunk-USNT2KNT.cjs');
|
|
5
|
+
var isFunction = require('@stryke/type-checks/is-function');
|
|
6
|
+
|
|
7
|
+
function extend(plugin, extension) {
|
|
8
|
+
if (isFunction.isFunction(plugin)) {
|
|
9
|
+
if (isFunction.isFunction(extension)) {
|
|
10
|
+
return async (options) => {
|
|
11
|
+
const pluginResult = await Promise.resolve(plugin(options));
|
|
12
|
+
const extensionResult = await Promise.resolve(extension(options));
|
|
13
|
+
return chunk5TL6KEQ5_cjs.merge(extensionResult, pluginResult);
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
return async (options) => {
|
|
17
|
+
const result = await Promise.resolve(plugin(options));
|
|
18
|
+
return chunk5TL6KEQ5_cjs.merge(extension, result);
|
|
19
|
+
};
|
|
20
|
+
} else if (isFunction.isFunction(extension)) {
|
|
21
|
+
return async (options) => {
|
|
22
|
+
const result = await Promise.resolve(extension(options));
|
|
23
|
+
return chunk5TL6KEQ5_cjs.merge(plugin, result);
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
return chunk5TL6KEQ5_cjs.merge(plugin, extension);
|
|
27
|
+
}
|
|
28
|
+
chunkUSNT2KNT_cjs.__name(extend, "extend");
|
|
29
|
+
|
|
30
|
+
exports.extend = extend;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { isPluginHook, getHookHandler } from './chunk-PK6PYFWY.js';
|
|
2
|
+
import { __name } from './chunk-SHUYVCID.js';
|
|
3
|
+
import defu, { createDefu } from 'defu';
|
|
4
|
+
|
|
5
|
+
var mergePlugin = createDefu((obj, key, value) => {
|
|
6
|
+
if (isPluginHook(obj[key]) && isPluginHook(value)) {
|
|
7
|
+
obj[key] = {
|
|
8
|
+
...obj[key],
|
|
9
|
+
...value,
|
|
10
|
+
handler: /* @__PURE__ */ __name(async (...params) => {
|
|
11
|
+
const [resultA, resultB] = await Promise.all([
|
|
12
|
+
getHookHandler(obj[key])(...params),
|
|
13
|
+
getHookHandler(value)(...params)
|
|
14
|
+
]);
|
|
15
|
+
return resultB && resultA ? defu(resultA, resultB) : resultA || resultB;
|
|
16
|
+
}, "handler")
|
|
17
|
+
};
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
return false;
|
|
21
|
+
});
|
|
22
|
+
function merge(pluginA, pluginB) {
|
|
23
|
+
return mergePlugin(pluginA, pluginB);
|
|
24
|
+
}
|
|
25
|
+
__name(merge, "merge");
|
|
26
|
+
|
|
27
|
+
export { merge };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Format } from '@storm-software/build-tools/types';
|
|
2
2
|
import { LogLevelLabel } from '@storm-software/config-tools/types';
|
|
3
3
|
import { StormWorkspaceConfig } from '@storm-software/config/types';
|
|
4
|
-
import { NonUndefined, MaybePromise, FunctionLike } from '@stryke/types/base';
|
|
4
|
+
import { NonUndefined, MaybePromise, FunctionLike, DeepPartial } from '@stryke/types/base';
|
|
5
5
|
import { TypeDefinition, TypeDefinitionParameter } from '@stryke/types/configuration';
|
|
6
6
|
import { AssetGlob } from '@stryke/types/file';
|
|
7
7
|
import { ResolvedPreviewOptions, PreviewOptions } from 'vite';
|
|
@@ -20,6 +20,7 @@ import { PathLike, StatSyncOptions, Stats, RmDirOptions, RmOptions, Mode, MakeDi
|
|
|
20
20
|
import { IUnionFs } from 'unionfs';
|
|
21
21
|
|
|
22
22
|
type UnpluginBuildVariant = "rollup" | "webpack" | "rspack" | "vite" | "esbuild" | "farm" | "unloader" | "rolldown";
|
|
23
|
+
type BuildVariant = UnpluginBuildVariant | "tsup" | "unbuild";
|
|
23
24
|
interface BuildConfig {
|
|
24
25
|
/**
|
|
25
26
|
* The platform to build the project for
|
|
@@ -1037,6 +1038,8 @@ type PluginConfigObject<TContext extends PluginContext = PluginContext, TOptions
|
|
|
1037
1038
|
* A configuration tuple for a Powerlines plugin.
|
|
1038
1039
|
*/
|
|
1039
1040
|
type PluginConfig<TContext extends PluginContext = PluginContext> = string | PluginFactory<TContext, void> | Plugin<TContext> | Promise<Plugin<TContext>> | PluginConfigTuple<TContext> | PluginConfigObject<TContext>;
|
|
1041
|
+
type PartialPlugin<in out TContext extends PluginContext = PluginContext> = DeepPartial<Plugin<TContext>>;
|
|
1042
|
+
type PartialPluginFactory<in out TContext extends PluginContext = PluginContext, TOptions = any> = (options: TOptions) => MaybePromise<PartialPlugin<TContext>>;
|
|
1040
1043
|
type ProjectType = "application" | "library";
|
|
1041
1044
|
interface OutputConfig {
|
|
1042
1045
|
/**
|
|
@@ -1306,4 +1309,4 @@ type InlineConfig<TUserConfig extends UserConfig = UserConfig> = Partial<TUserCo
|
|
|
1306
1309
|
command: PowerlinesCommand;
|
|
1307
1310
|
};
|
|
1308
1311
|
|
|
1309
|
-
export type {
|
|
1312
|
+
export type { BuildVariant as B, Context as C, ExternalPluginHookFunctions as E, GenerateTypesResult as G, PluginContext as P, ResolvedConfig as R, Plugin as a, PluginFactory as b, PartialPlugin as c, PartialPluginFactory as d, BasePluginHookFunctions as e, PluginHookFunctions as f, PluginHookObject as g, PluginConfigObject as h, PluginConfigTuple as i, PluginConfig as j, PluginHook as k, EnvironmentConfig as l, EnvironmentResolvedConfig as m };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Format } from '@storm-software/build-tools/types';
|
|
2
2
|
import { LogLevelLabel } from '@storm-software/config-tools/types';
|
|
3
3
|
import { StormWorkspaceConfig } from '@storm-software/config/types';
|
|
4
|
-
import { NonUndefined, MaybePromise, FunctionLike } from '@stryke/types/base';
|
|
4
|
+
import { NonUndefined, MaybePromise, FunctionLike, DeepPartial } from '@stryke/types/base';
|
|
5
5
|
import { TypeDefinition, TypeDefinitionParameter } from '@stryke/types/configuration';
|
|
6
6
|
import { AssetGlob } from '@stryke/types/file';
|
|
7
7
|
import { ResolvedPreviewOptions, PreviewOptions } from 'vite';
|
|
@@ -20,6 +20,7 @@ import { PathLike, StatSyncOptions, Stats, RmDirOptions, RmOptions, Mode, MakeDi
|
|
|
20
20
|
import { IUnionFs } from 'unionfs';
|
|
21
21
|
|
|
22
22
|
type UnpluginBuildVariant = "rollup" | "webpack" | "rspack" | "vite" | "esbuild" | "farm" | "unloader" | "rolldown";
|
|
23
|
+
type BuildVariant = UnpluginBuildVariant | "tsup" | "unbuild";
|
|
23
24
|
interface BuildConfig {
|
|
24
25
|
/**
|
|
25
26
|
* The platform to build the project for
|
|
@@ -1037,6 +1038,8 @@ type PluginConfigObject<TContext extends PluginContext = PluginContext, TOptions
|
|
|
1037
1038
|
* A configuration tuple for a Powerlines plugin.
|
|
1038
1039
|
*/
|
|
1039
1040
|
type PluginConfig<TContext extends PluginContext = PluginContext> = string | PluginFactory<TContext, void> | Plugin<TContext> | Promise<Plugin<TContext>> | PluginConfigTuple<TContext> | PluginConfigObject<TContext>;
|
|
1041
|
+
type PartialPlugin<in out TContext extends PluginContext = PluginContext> = DeepPartial<Plugin<TContext>>;
|
|
1042
|
+
type PartialPluginFactory<in out TContext extends PluginContext = PluginContext, TOptions = any> = (options: TOptions) => MaybePromise<PartialPlugin<TContext>>;
|
|
1040
1043
|
type ProjectType = "application" | "library";
|
|
1041
1044
|
interface OutputConfig {
|
|
1042
1045
|
/**
|
|
@@ -1306,4 +1309,4 @@ type InlineConfig<TUserConfig extends UserConfig = UserConfig> = Partial<TUserCo
|
|
|
1306
1309
|
command: PowerlinesCommand;
|
|
1307
1310
|
};
|
|
1308
1311
|
|
|
1309
|
-
export type {
|
|
1312
|
+
export type { BuildVariant as B, Context as C, ExternalPluginHookFunctions as E, GenerateTypesResult as G, PluginContext as P, ResolvedConfig as R, Plugin as a, PluginFactory as b, PartialPlugin as c, PartialPluginFactory as d, BasePluginHookFunctions as e, PluginHookFunctions as f, PluginHookObject as g, PluginConfigObject as h, PluginConfigTuple as i, PluginConfig as j, PluginHook as k, EnvironmentConfig as l, EnvironmentResolvedConfig as m };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk75UVEMIV_cjs = require('./chunk-75UVEMIV.cjs');
|
|
4
|
+
require('./chunk-WEIEQXIJ.cjs');
|
|
5
|
+
require('./chunk-5TL6KEQ5.cjs');
|
|
6
|
+
require('./chunk-MQOW6ENT.cjs');
|
|
7
|
+
require('./chunk-USNT2KNT.cjs');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
Object.defineProperty(exports, "enforceVariant", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunk75UVEMIV_cjs.enforceVariant; }
|
|
14
|
+
});
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { P as PluginContext, B as BuildVariant, a as Plugin, b as PluginFactory } from './config-BR2ZZoaP.cjs';
|
|
2
|
+
import '@storm-software/build-tools/types';
|
|
3
|
+
import '@storm-software/config-tools/types';
|
|
4
|
+
import '@storm-software/config/types';
|
|
5
|
+
import '@stryke/types/base';
|
|
6
|
+
import '@stryke/types/configuration';
|
|
7
|
+
import '@stryke/types/file';
|
|
8
|
+
import 'vite';
|
|
9
|
+
import '@stryke/env/get-env-paths';
|
|
10
|
+
import '@stryke/types/package-json';
|
|
11
|
+
import 'jiti';
|
|
12
|
+
import 'oxc-parser';
|
|
13
|
+
import 'semver';
|
|
14
|
+
import 'unplugin';
|
|
15
|
+
import '@stryke/types/array';
|
|
16
|
+
import '@stryke/types/tsconfig';
|
|
17
|
+
import 'typescript';
|
|
18
|
+
import '@stryke/json/types';
|
|
19
|
+
import 'memfs';
|
|
20
|
+
import 'node:fs';
|
|
21
|
+
import 'unionfs';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Enforces a specific build variant for a plugin.
|
|
25
|
+
*
|
|
26
|
+
* @param plugin - The plugin or plugin factory to enforce the build variant on.
|
|
27
|
+
* @param variant - The build variant to enforce.
|
|
28
|
+
* @returns A new plugin or plugin factory that enforces the specified build variant.
|
|
29
|
+
*/
|
|
30
|
+
declare function enforceVariant<TContext extends PluginContext = PluginContext, TBuildVariant extends BuildVariant = BuildVariant>(plugin: Plugin<TContext> | PluginFactory<TContext>, variant: TBuildVariant): Plugin<TContext>;
|
|
31
|
+
|
|
32
|
+
export { enforceVariant };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { P as PluginContext, B as BuildVariant, a as Plugin, b as PluginFactory } from './config-BR2ZZoaP.js';
|
|
2
|
+
import '@storm-software/build-tools/types';
|
|
3
|
+
import '@storm-software/config-tools/types';
|
|
4
|
+
import '@storm-software/config/types';
|
|
5
|
+
import '@stryke/types/base';
|
|
6
|
+
import '@stryke/types/configuration';
|
|
7
|
+
import '@stryke/types/file';
|
|
8
|
+
import 'vite';
|
|
9
|
+
import '@stryke/env/get-env-paths';
|
|
10
|
+
import '@stryke/types/package-json';
|
|
11
|
+
import 'jiti';
|
|
12
|
+
import 'oxc-parser';
|
|
13
|
+
import 'semver';
|
|
14
|
+
import 'unplugin';
|
|
15
|
+
import '@stryke/types/array';
|
|
16
|
+
import '@stryke/types/tsconfig';
|
|
17
|
+
import 'typescript';
|
|
18
|
+
import '@stryke/json/types';
|
|
19
|
+
import 'memfs';
|
|
20
|
+
import 'node:fs';
|
|
21
|
+
import 'unionfs';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Enforces a specific build variant for a plugin.
|
|
25
|
+
*
|
|
26
|
+
* @param plugin - The plugin or plugin factory to enforce the build variant on.
|
|
27
|
+
* @param variant - The build variant to enforce.
|
|
28
|
+
* @returns A new plugin or plugin factory that enforces the specified build variant.
|
|
29
|
+
*/
|
|
30
|
+
declare function enforceVariant<TContext extends PluginContext = PluginContext, TBuildVariant extends BuildVariant = BuildVariant>(plugin: Plugin<TContext> | PluginFactory<TContext>, variant: TBuildVariant): Plugin<TContext>;
|
|
31
|
+
|
|
32
|
+
export { enforceVariant };
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkWEIEQXIJ_cjs = require('./chunk-WEIEQXIJ.cjs');
|
|
4
|
+
require('./chunk-5TL6KEQ5.cjs');
|
|
5
|
+
require('./chunk-MQOW6ENT.cjs');
|
|
4
6
|
require('./chunk-USNT2KNT.cjs');
|
|
5
7
|
|
|
6
8
|
|
|
7
9
|
|
|
8
|
-
Object.defineProperty(exports, "
|
|
10
|
+
Object.defineProperty(exports, "extend", {
|
|
9
11
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkWEIEQXIJ_cjs.extend; }
|
|
11
13
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PluginContext, a as
|
|
1
|
+
import { P as PluginContext, a as Plugin, b as PluginFactory, c as PartialPlugin, d as PartialPluginFactory } from './config-BR2ZZoaP.cjs';
|
|
2
2
|
import '@storm-software/build-tools/types';
|
|
3
3
|
import '@storm-software/config-tools/types';
|
|
4
4
|
import '@storm-software/config/types';
|
|
@@ -23,9 +23,10 @@ import 'unionfs';
|
|
|
23
23
|
/**
|
|
24
24
|
* Adds additional helper functionality to a plugin via a plugin builder function.
|
|
25
25
|
*
|
|
26
|
-
* @param
|
|
27
|
-
* @
|
|
26
|
+
* @param plugin - The base plugin object or factory function to extend.
|
|
27
|
+
* @param extension - The plugin extension object or factory function. This function receives the plugin options and returns a plugin object.
|
|
28
|
+
* @returns A function accepting the plugin options and returning the extended plugin.
|
|
28
29
|
*/
|
|
29
|
-
declare function
|
|
30
|
+
declare function extend<TContext extends PluginContext = PluginContext>(plugin: Plugin<TContext> | PluginFactory<TContext>, extension: PartialPlugin<TContext> | PartialPluginFactory<TContext>): typeof plugin extends PluginFactory<TContext> ? PluginFactory<TContext, (typeof extension extends PluginFactory<TContext> ? Parameters<typeof extension>[0] : never) & Parameters<typeof plugin>[0]> : typeof plugin extends PluginFactory<TContext> ? PluginFactory<TContext> : Plugin<TContext>;
|
|
30
31
|
|
|
31
|
-
export {
|
|
32
|
+
export { extend };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PluginContext, a as
|
|
1
|
+
import { P as PluginContext, a as Plugin, b as PluginFactory, c as PartialPlugin, d as PartialPluginFactory } from './config-BR2ZZoaP.js';
|
|
2
2
|
import '@storm-software/build-tools/types';
|
|
3
3
|
import '@storm-software/config-tools/types';
|
|
4
4
|
import '@storm-software/config/types';
|
|
@@ -23,9 +23,10 @@ import 'unionfs';
|
|
|
23
23
|
/**
|
|
24
24
|
* Adds additional helper functionality to a plugin via a plugin builder function.
|
|
25
25
|
*
|
|
26
|
-
* @param
|
|
27
|
-
* @
|
|
26
|
+
* @param plugin - The base plugin object or factory function to extend.
|
|
27
|
+
* @param extension - The plugin extension object or factory function. This function receives the plugin options and returns a plugin object.
|
|
28
|
+
* @returns A function accepting the plugin options and returning the extended plugin.
|
|
28
29
|
*/
|
|
29
|
-
declare function
|
|
30
|
+
declare function extend<TContext extends PluginContext = PluginContext>(plugin: Plugin<TContext> | PluginFactory<TContext>, extension: PartialPlugin<TContext> | PartialPluginFactory<TContext>): typeof plugin extends PluginFactory<TContext> ? PluginFactory<TContext, (typeof extension extends PluginFactory<TContext> ? Parameters<typeof extension>[0] : never) & Parameters<typeof plugin>[0]> : typeof plugin extends PluginFactory<TContext> ? PluginFactory<TContext> : Plugin<TContext>;
|
|
30
31
|
|
|
31
|
-
export {
|
|
32
|
+
export { extend };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PluginContext,
|
|
1
|
+
import { P as PluginContext, e as BasePluginHookFunctions, f as PluginHookFunctions, E as ExternalPluginHookFunctions, g as PluginHookObject, a as Plugin, R as ResolvedConfig, h as PluginConfigObject, i as PluginConfigTuple, j as PluginConfig, k as PluginHook, C as Context, l as EnvironmentConfig, m as EnvironmentResolvedConfig, G as GenerateTypesResult } from './config-BR2ZZoaP.cjs';
|
|
2
2
|
import * as unplugin from 'unplugin';
|
|
3
3
|
import * as _stryke_types_base from '@stryke/types/base';
|
|
4
4
|
import { AnyFunction } from '@stryke/types/base';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PluginContext,
|
|
1
|
+
import { P as PluginContext, e as BasePluginHookFunctions, f as PluginHookFunctions, E as ExternalPluginHookFunctions, g as PluginHookObject, a as Plugin, R as ResolvedConfig, h as PluginConfigObject, i as PluginConfigTuple, j as PluginConfig, k as PluginHook, C as Context, l as EnvironmentConfig, m as EnvironmentResolvedConfig, G as GenerateTypesResult } from './config-BR2ZZoaP.js';
|
|
2
2
|
import * as unplugin from 'unplugin';
|
|
3
3
|
import * as _stryke_types_base from '@stryke/types/base';
|
|
4
4
|
import { AnyFunction } from '@stryke/types/base';
|