powerlines 0.40.18 → 0.40.19
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-BpPToWwp.mjs → api-D-RIxwbi.mjs} +30 -27
- package/dist/api-D-RIxwbi.mjs.map +1 -0
- package/dist/{api-CMZBG3oq.cjs → api-Dspa27jK.cjs} +29 -26
- package/dist/astro.cjs +2 -2
- package/dist/astro.d.mts +1 -1
- package/dist/astro.mjs +2 -2
- package/dist/context/index.cjs +1 -1
- package/dist/context/index.d.mts +1 -1
- package/dist/context/index.mjs +1 -1
- package/dist/{esbuild-DhtbXiqW.cjs → esbuild-BblRTl0L.cjs} +1 -1
- package/dist/{esbuild-Cvb9P_ZW.mjs → esbuild-xbqsWwqN.mjs} +2 -2
- package/dist/{esbuild-Cvb9P_ZW.mjs.map → esbuild-xbqsWwqN.mjs.map} +1 -1
- package/dist/esbuild.cjs +2 -2
- package/dist/esbuild.d.mts +1 -1
- package/dist/esbuild.mjs +2 -2
- package/dist/farm.cjs +1 -1
- package/dist/farm.d.mts +1 -1
- package/dist/farm.mjs +1 -1
- package/dist/{index-C1wDpmrr.d.mts → index-2JXW-b2-.d.mts} +2 -2
- package/dist/{index-C1wDpmrr.d.mts.map → index-2JXW-b2-.d.mts.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/next.cjs +2 -2
- package/dist/next.mjs +2 -2
- package/dist/nuxt.cjs +3 -3
- package/dist/nuxt.d.mts +1 -1
- package/dist/nuxt.mjs +3 -3
- package/dist/{plugin-Ba95Lv5d.d.cts → plugin-B9TQt-p0.d.cts} +2 -2
- package/dist/{plugin-Ba95Lv5d.d.cts.map → plugin-B9TQt-p0.d.cts.map} +1 -1
- package/dist/plugin-utils.d.mts +1 -1
- package/dist/{rolldown-CGkyfhQb.cjs → rolldown-CJwfgimU.cjs} +1 -1
- package/dist/{rolldown-msQVl4gL.mjs → rolldown-DM-vGV3t.mjs} +2 -2
- package/dist/{rolldown-msQVl4gL.mjs.map → rolldown-DM-vGV3t.mjs.map} +1 -1
- package/dist/rolldown.cjs +2 -2
- package/dist/rolldown.d.mts +1 -1
- package/dist/rolldown.mjs +2 -2
- package/dist/rollup.cjs +1 -1
- package/dist/rollup.d.mts +1 -1
- package/dist/rollup.mjs +1 -1
- package/dist/rspack.cjs +1 -1
- package/dist/rspack.d.mts +1 -1
- package/dist/rspack.mjs +1 -1
- package/dist/storage/index.d.mts +1 -1
- package/dist/tsdown.cjs +3 -3
- package/dist/tsdown.d.mts +1 -1
- package/dist/tsdown.mjs +3 -3
- package/dist/tsdown.mjs.map +1 -1
- package/dist/tsup.cjs +2 -2
- package/dist/tsup.d.mts +1 -1
- package/dist/tsup.mjs +2 -2
- package/dist/typescript/index.d.mts +1 -1
- package/dist/unloader.cjs +1 -1
- package/dist/unloader.d.mts +1 -1
- package/dist/unloader.mjs +1 -1
- package/dist/unplugin.cjs +1 -1
- package/dist/unplugin.d.cts +1 -1
- package/dist/unplugin.d.mts +1 -1
- package/dist/unplugin.mjs +1 -1
- package/dist/{vite-CEZ8iJOi.mjs → vite-5WSLwM5t.mjs} +2 -2
- package/dist/{vite-CEZ8iJOi.mjs.map → vite-5WSLwM5t.mjs.map} +1 -1
- package/dist/{vite-kYt2G76D.cjs → vite-D-f0L5Sn.cjs} +1 -1
- package/dist/vite.cjs +2 -2
- package/dist/vite.d.mts +1 -1
- package/dist/vite.mjs +2 -2
- package/dist/{webpack-47f2tjtr.cjs → webpack-CKrlgWVq.cjs} +1 -1
- package/dist/{webpack-DBUxefMB.mjs → webpack-z0CSoK50.mjs} +2 -2
- package/dist/{webpack-DBUxefMB.mjs.map → webpack-z0CSoK50.mjs.map} +1 -1
- package/dist/webpack.cjs +2 -2
- package/dist/webpack.d.mts +1 -1
- package/dist/webpack.mjs +2 -2
- package/package.json +29 -29
- package/dist/api-BpPToWwp.mjs.map +0 -1
|
@@ -75,7 +75,7 @@ let unplugin = require("unplugin");
|
|
|
75
75
|
|
|
76
76
|
//#region package.json
|
|
77
77
|
var name = "powerlines";
|
|
78
|
-
var version = "0.40.
|
|
78
|
+
var version = "0.40.19";
|
|
79
79
|
|
|
80
80
|
//#endregion
|
|
81
81
|
//#region src/_internal/helpers/generate-types.ts
|
|
@@ -2129,7 +2129,7 @@ var PowerlinesContext = class PowerlinesContext {
|
|
|
2129
2129
|
return {
|
|
2130
2130
|
id: result,
|
|
2131
2131
|
external: !(0, bundle_require.match)(moduleId, this.config.resolve.noExternal) && ((0, bundle_require.match)(moduleId, this.config.resolve.external) || moduleId.startsWith("node:") || this.fs.isVirtual(moduleId) && this.config.projectType !== "application" || this.config.resolve.skipNodeModulesBundle && !/^[A-Z]:[/\\]|^\.{0,2}\/|^\.{1,2}$/.test(moduleId)),
|
|
2132
|
-
virtual:
|
|
2132
|
+
virtual: true
|
|
2133
2133
|
};
|
|
2134
2134
|
}
|
|
2135
2135
|
if (this.config.resolve.skipNodeModulesBundle) {
|
|
@@ -2629,8 +2629,8 @@ function isUnpluginBuilderVariant(str) {
|
|
|
2629
2629
|
|
|
2630
2630
|
//#endregion
|
|
2631
2631
|
//#region ../core/src/lib/unplugin/module-resolution.ts
|
|
2632
|
-
const VIRTUAL_MODULE_PREFIX = "
|
|
2633
|
-
const VIRTUAL_MODULE_PREFIX_REGEX = /^
|
|
2632
|
+
const VIRTUAL_MODULE_PREFIX = "__powerlines-virtual:";
|
|
2633
|
+
const VIRTUAL_MODULE_PREFIX_REGEX = /^__powerlines-virtual:/;
|
|
2634
2634
|
/**
|
|
2635
2635
|
* Creates the module resolution hook functions for a Powerlines unplugin plugin instance.
|
|
2636
2636
|
*
|
|
@@ -2688,28 +2688,31 @@ function createUnpluginModuleResolutionFunctions(context, options = {}) {
|
|
|
2688
2688
|
};
|
|
2689
2689
|
return null;
|
|
2690
2690
|
},
|
|
2691
|
-
load: {
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
result
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
result
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2691
|
+
load: {
|
|
2692
|
+
filter: options.prefix ? { id: { include: VIRTUAL_MODULE_PREFIX_REGEX } } : void 0,
|
|
2693
|
+
async handler(id) {
|
|
2694
|
+
const moduleId = id.replace(VIRTUAL_MODULE_PREFIX_REGEX, "");
|
|
2695
|
+
let result = await ctx.$$internal.callHook("load", {
|
|
2696
|
+
sequential: true,
|
|
2697
|
+
result: "first",
|
|
2698
|
+
order: "pre"
|
|
2699
|
+
}, moduleId);
|
|
2700
|
+
if (result) return result;
|
|
2701
|
+
result = await ctx.$$internal.callHook("load", {
|
|
2702
|
+
sequential: true,
|
|
2703
|
+
result: "first",
|
|
2704
|
+
order: "normal"
|
|
2705
|
+
}, moduleId);
|
|
2706
|
+
if (result) return result;
|
|
2707
|
+
result = await ctx.load(moduleId);
|
|
2708
|
+
if (result) return result;
|
|
2709
|
+
return ctx.$$internal.callHook("load", {
|
|
2710
|
+
sequential: true,
|
|
2711
|
+
result: "first",
|
|
2712
|
+
order: "post"
|
|
2713
|
+
}, moduleId);
|
|
2714
|
+
}
|
|
2715
|
+
}
|
|
2713
2716
|
};
|
|
2714
2717
|
}
|
|
2715
2718
|
|
package/dist/astro.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
require('./api-
|
|
2
|
+
require('./api-Dspa27jK.cjs');
|
|
3
3
|
require('./tsconfig-C8M8X6U0.cjs');
|
|
4
4
|
require('./plugin-utils-Ck3cx3w6.cjs');
|
|
5
5
|
require('./plugin-CZ_PJPpQ.cjs');
|
|
@@ -11,7 +11,7 @@ require('./virtual-B1MLgqnQ.cjs');
|
|
|
11
11
|
require('./resolve-options-BQnTgg3V.cjs');
|
|
12
12
|
require('./resolve-options-vyFhhkLp.cjs');
|
|
13
13
|
require('./resolve-options-lxQ2pm0W.cjs');
|
|
14
|
-
const require_vite = require('./vite-
|
|
14
|
+
const require_vite = require('./vite-D-f0L5Sn.cjs');
|
|
15
15
|
|
|
16
16
|
//#region src/astro.ts
|
|
17
17
|
/**
|
package/dist/astro.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./config-CK756s0L.mjs";
|
|
2
2
|
import "./config-CiPXgwzt.mjs";
|
|
3
3
|
import "./index-C7W0kmm7.mjs";
|
|
4
|
-
import "./index-
|
|
4
|
+
import "./index-2JXW-b2-.mjs";
|
|
5
5
|
import { r as VitePluginUserConfig } from "./plugin-C_8RhG5V.mjs";
|
|
6
6
|
import { AstroUserConfig } from "astro";
|
|
7
7
|
|
package/dist/astro.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./api-
|
|
1
|
+
import "./api-D-RIxwbi.mjs";
|
|
2
2
|
import "./tsconfig-B92heKit.mjs";
|
|
3
3
|
import "./plugin-utils-C3HnZJl1.mjs";
|
|
4
4
|
import "./plugin-E5foRD0k.mjs";
|
|
@@ -10,7 +10,7 @@ import "./virtual-B9imjOqe.mjs";
|
|
|
10
10
|
import "./resolve-options-DHL3RM8F.mjs";
|
|
11
11
|
import "./resolve-options-6sXFqzEA.mjs";
|
|
12
12
|
import "./resolve-options-D-RGs8j8.mjs";
|
|
13
|
-
import { n as vite_default } from "./vite-
|
|
13
|
+
import { n as vite_default } from "./vite-5WSLwM5t.mjs";
|
|
14
14
|
|
|
15
15
|
//#region src/astro.ts
|
|
16
16
|
/**
|
package/dist/context/index.cjs
CHANGED
package/dist/context/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Ct as InitContextOptions, Dn as InferHookReturnType, Dt as ResolveResult, En as InferHookParameters, Et as PluginContext, M as ResolvedEntryTypeDefinition, Nr as API, Nt as TransformResult$1, Ot as Resolver, P as WorkspaceConfig, St as FetchOptions, Tt as ParseOptions, Ur as VirtualFile, _t as Context, bt as EnvironmentContext, cn as ParsedTypeScriptConfig, er as Plugin, ht as APIContext, j as ResolvedConfig, jt as SelectHooksOptions, kt as SelectHookResult, l as EnvironmentResolvedConfig, p as LogFn, qr as VirtualFileSystemInterface, u as InitialUserConfig, vt as EmitEntryOptions, wn as HooksList, wt as MetaInfo, x as PluginConfig, xn as CallHookOptions, xt as EnvironmentContextPlugin, yt as EmitOptions, zr as ResolveOptions } from "../config-CK756s0L.mjs";
|
|
2
2
|
import "../config-CiPXgwzt.mjs";
|
|
3
3
|
import "../index-C7W0kmm7.mjs";
|
|
4
|
-
import "../index-
|
|
4
|
+
import "../index-2JXW-b2-.mjs";
|
|
5
5
|
import "../types-Bh_vLuQ0.mjs";
|
|
6
6
|
import { EnvPaths } from "@stryke/env/get-env-paths";
|
|
7
7
|
import { FlatCache } from "flat-cache";
|
package/dist/context/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as PowerlinesContext, i as createPluginContext, n as PowerlinesAPIContext, r as PowerlinesEnvironmentContext } from "../api-
|
|
1
|
+
import { d as PowerlinesContext, i as createPluginContext, n as PowerlinesAPIContext, r as PowerlinesEnvironmentContext } from "../api-D-RIxwbi.mjs";
|
|
2
2
|
import "../tsconfig-B92heKit.mjs";
|
|
3
3
|
import "../plugin-utils-C3HnZJl1.mjs";
|
|
4
4
|
import "../plugin-E5foRD0k.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CbDLau6x.cjs');
|
|
2
|
-
const require_api = require('./api-
|
|
2
|
+
const require_api = require('./api-Dspa27jK.cjs');
|
|
3
3
|
const require_resolve_options = require('./resolve-options-BQnTgg3V.cjs');
|
|
4
4
|
let __stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-string");
|
|
5
5
|
let __stryke_path_file_path_fns = require("@stryke/path/file-path-fns");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as createUnpluginFactory, o as createUnplugin } from "./api-
|
|
1
|
+
import { a as createUnpluginFactory, o as createUnplugin } from "./api-D-RIxwbi.mjs";
|
|
2
2
|
import { n as resolveEntry, r as resolveOptions, t as DEFAULT_ESBUILD_CONFIG } from "./resolve-options-DHL3RM8F.mjs";
|
|
3
3
|
import { isSetString } from "@stryke/type-checks/is-set-string";
|
|
4
4
|
import { findFileName } from "@stryke/path/file-path-fns";
|
|
@@ -79,4 +79,4 @@ var esbuild_default = unplugin;
|
|
|
79
79
|
|
|
80
80
|
//#endregion
|
|
81
81
|
export { unplugin as n, src_default as r, esbuild_default as t };
|
|
82
|
-
//# sourceMappingURL=esbuild-
|
|
82
|
+
//# sourceMappingURL=esbuild-xbqsWwqN.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"esbuild-
|
|
1
|
+
{"version":3,"file":"esbuild-xbqsWwqN.mjs","names":["createEsbuildPlugin","createEsbuildUnplugin","createEsbuildPlugin","plugin","build"],"sources":["../../plugin-esbuild/src/helpers/unplugin.ts","../../plugin-esbuild/src/index.ts","../src/esbuild.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { createUnplugin } from \"@powerlines/core/lib/unplugin\";\nimport { createEsbuildPlugin as createEsbuildUnplugin } from \"unplugin\";\nimport { EsbuildPluginContext } from \"../types/plugin\";\n\nexport function createEsbuildPlugin(context: EsbuildPluginContext) {\n return createEsbuildUnplugin(createUnplugin(context))({});\n}\n","/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { Plugin } from \"@powerlines/core\";\nimport defu from \"defu\";\nimport { build } from \"esbuild\";\nimport {\n DEFAULT_ESBUILD_CONFIG,\n resolveEntry,\n resolveOptions\n} from \"./helpers/resolve-options\";\nimport { createEsbuildPlugin } from \"./helpers/unplugin\";\nimport {\n EsbuildPluginContext,\n EsbuildPluginOptions,\n EsbuildPluginUserConfig\n} from \"./types/plugin\";\n\nexport * from \"./helpers\";\nexport * from \"./types\";\n\ndeclare module \"@powerlines/core\" {\n interface Config {\n esbuild?: EsbuildPluginOptions;\n }\n}\n\n/**\n * A Powerlines plugin to assist in developing other Powerlines plugins.\n */\nexport const plugin = <\n TContext extends EsbuildPluginContext = EsbuildPluginContext\n>(\n options: EsbuildPluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"esbuild\",\n config() {\n return {\n output: {\n format: [\"esm\"]\n },\n build: {\n ...DEFAULT_ESBUILD_CONFIG,\n ...options,\n variant: \"esbuild\"\n }\n } as Partial<EsbuildPluginUserConfig>;\n },\n async build() {\n await build(\n defu(\n {\n entryPoints: resolveEntry(this, this.entry),\n plugins: [createEsbuildPlugin(this)]\n },\n resolveOptions(this)\n )\n );\n }\n };\n};\n\nexport default plugin;\n","/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { resolveOptions } from \"@powerlines/plugin-esbuild/helpers/resolve-options\";\nimport { EsbuildPluginUserConfig } from \"@powerlines/plugin-esbuild/types/plugin\";\nimport { isUndefined } from \"@stryke/type-checks/is-undefined\";\nimport type { BuildOptions, PluginBuild } from \"esbuild\";\nimport { createEsbuildPlugin } from \"unplugin\";\nimport { createUnpluginFactory } from \"./unplugin\";\n\nexport {\n default as esbuild,\n default as plugin\n} from \"@powerlines/plugin-esbuild\";\n\n/**\n * An ESBuild plugin that will invoke the Powerlines API hooks during the build process.\n *\n * @see https://esbuild.github.io/plugins/\n *\n * @example\n * ```js\n * // esbuild.config.js\n * import powerlines from \"powerlines/esbuild\";\n *\n * export default {\n * plugins: [powerlines({ name: \"example-app\", ... })],\n * };\n *\n * ```\n */\nexport const unplugin = createEsbuildPlugin<Partial<EsbuildPluginUserConfig>>(\n createUnpluginFactory(\"esbuild\", (api, plugin) => {\n return {\n ...plugin,\n esbuild: {\n config: options => {\n options ??= {} as BuildOptions;\n\n const result = resolveOptions(api.context);\n for (const key in result) {\n if (\n isUndefined(options[key as keyof BuildOptions]) &&\n !isUndefined(result[key as keyof BuildOptions])\n ) {\n options[key as keyof BuildOptions] = result[\n key as keyof BuildOptions\n ] as any;\n }\n }\n },\n setup: async (build: PluginBuild) => {\n const environment = await api.context.getEnvironment();\n\n return api.callHook(\"esbuild:setup\", { environment }, build);\n }\n }\n };\n })\n);\n\nexport default unplugin;\n\nexport { unplugin as \"module.exports\" };\n"],"mappings":";;;;;;;;;;;AAsBA,SAAgBA,sBAAoB,SAA+B;AACjE,QAAOC,oBAAsB,eAAe,QAAQ,CAAC,CAAC,EAAE,CAAC;;;;;;;;ACsB3D,MAAa,UAGX,UAAgC,EAAE,KACb;AACrB,QAAO;EACL,MAAM;EACN,SAAS;AACP,UAAO;IACL,QAAQ,EACN,QAAQ,CAAC,MAAM,EAChB;IACD,OAAO;KACL,GAAG;KACH,GAAG;KACH,SAAS;KACV;IACF;;EAEH,MAAM,QAAQ;AACZ,SAAM,MACJ,KACE;IACE,aAAa,aAAa,MAAM,KAAK,MAAM;IAC3C,SAAS,CAACC,sBAAoB,KAAK,CAAC;IACrC,EACD,eAAe,KAAK,CACrB,CACF;;EAEJ;;AAGH,kBAAe;;;;;;;;;;;;;;;;;;;;AChCf,MAAa,WAAW,oBACtB,sBAAsB,YAAY,KAAK,aAAW;AAChD,QAAO;EACL,GAAGC;EACH,SAAS;GACP,SAAQ,YAAW;AACjB,gBAAY,EAAE;IAEd,MAAM,SAAS,eAAe,IAAI,QAAQ;AAC1C,SAAK,MAAM,OAAO,OAChB,KACE,YAAY,QAAQ,KAA2B,IAC/C,CAAC,YAAY,OAAO,KAA2B,CAE/C,SAAQ,OAA6B,OACnC;;GAKR,OAAO,OAAO,YAAuB;IACnC,MAAM,cAAc,MAAM,IAAI,QAAQ,gBAAgB;AAEtD,WAAO,IAAI,SAAS,iBAAiB,EAAE,aAAa,EAAEC,QAAM;;GAE/D;EACF;EACD,CACH;AAED,sBAAe"}
|
package/dist/esbuild.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
require('./api-
|
|
2
|
+
require('./api-Dspa27jK.cjs');
|
|
3
3
|
require('./tsconfig-C8M8X6U0.cjs');
|
|
4
4
|
require('./plugin-utils-Ck3cx3w6.cjs');
|
|
5
5
|
require('./plugin-CZ_PJPpQ.cjs');
|
|
@@ -9,7 +9,7 @@ require('./config-D86Vw7SC.cjs');
|
|
|
9
9
|
require('./utils-BbDma_5Y.cjs');
|
|
10
10
|
require('./virtual-B1MLgqnQ.cjs');
|
|
11
11
|
require('./resolve-options-BQnTgg3V.cjs');
|
|
12
|
-
const require_esbuild = require('./esbuild-
|
|
12
|
+
const require_esbuild = require('./esbuild-BblRTl0L.cjs');
|
|
13
13
|
|
|
14
14
|
exports.default = require_esbuild.esbuild_default;
|
|
15
15
|
exports.esbuild = require_esbuild.src_default;
|
package/dist/esbuild.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Et as PluginContext, N as UserConfig, er as Plugin, j as ResolvedConfig } from "./config-CK756s0L.mjs";
|
|
2
2
|
import "./config-CiPXgwzt.mjs";
|
|
3
3
|
import "./index-C7W0kmm7.mjs";
|
|
4
|
-
import "./index-
|
|
4
|
+
import "./index-2JXW-b2-.mjs";
|
|
5
5
|
import * as esbuild0 from "esbuild";
|
|
6
6
|
import { BuildOptions } from "esbuild";
|
|
7
7
|
import { TypeDefinitionParameter } from "@stryke/types/configuration";
|
package/dist/esbuild.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./api-
|
|
1
|
+
import "./api-D-RIxwbi.mjs";
|
|
2
2
|
import "./tsconfig-B92heKit.mjs";
|
|
3
3
|
import "./plugin-utils-C3HnZJl1.mjs";
|
|
4
4
|
import "./plugin-E5foRD0k.mjs";
|
|
@@ -8,6 +8,6 @@ import "./config-D4Fh2gQL.mjs";
|
|
|
8
8
|
import "./utils-DoQcX7Sk.mjs";
|
|
9
9
|
import "./virtual-B9imjOqe.mjs";
|
|
10
10
|
import "./resolve-options-DHL3RM8F.mjs";
|
|
11
|
-
import { n as unplugin, r as src_default, t as esbuild_default } from "./esbuild-
|
|
11
|
+
import { n as unplugin, r as src_default, t as esbuild_default } from "./esbuild-xbqsWwqN.mjs";
|
|
12
12
|
|
|
13
13
|
export { esbuild_default as default, src_default as esbuild, src_default as plugin, unplugin as "module.exports", unplugin };
|
package/dist/farm.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
const require_chunk = require('./chunk-CbDLau6x.cjs');
|
|
3
|
-
const require_api = require('./api-
|
|
3
|
+
const require_api = require('./api-Dspa27jK.cjs');
|
|
4
4
|
require('./tsconfig-C8M8X6U0.cjs');
|
|
5
5
|
require('./plugin-utils-Ck3cx3w6.cjs');
|
|
6
6
|
require('./plugin-CZ_PJPpQ.cjs');
|
package/dist/farm.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { N as UserConfig } from "./config-CK756s0L.mjs";
|
|
2
2
|
import "./config-CiPXgwzt.mjs";
|
|
3
3
|
import "./index-C7W0kmm7.mjs";
|
|
4
|
-
import "./index-
|
|
4
|
+
import "./index-2JXW-b2-.mjs";
|
|
5
5
|
import * as _farmfe_core0 from "@farmfe/core";
|
|
6
6
|
|
|
7
7
|
//#region src/farm.d.ts
|
package/dist/farm.mjs
CHANGED
|
@@ -25,7 +25,7 @@ interface CreateUnpluginModuleResolutionFunctionsOptions {
|
|
|
25
25
|
* An indicator of whether to prefix virtual module IDs with a specific string. This is useful for ensuring that virtual modules are only processed by the plugin and not by other plugins or the bundler itself.
|
|
26
26
|
*
|
|
27
27
|
* @remarks
|
|
28
|
-
* - If set to `true`, virtual module IDs will be prefixed with the string `
|
|
28
|
+
* - If set to `true`, virtual module IDs will be prefixed with the string `__powerlines-virtual:`.
|
|
29
29
|
* - If set to `false`, no prefix will be added to virtual module IDs.
|
|
30
30
|
*
|
|
31
31
|
* @defaultValue true
|
|
@@ -79,4 +79,4 @@ declare type __ΩCreateUnpluginResolverOptions = any[];
|
|
|
79
79
|
declare type __ΩCreateUnpluginOptions = any[];
|
|
80
80
|
//#endregion
|
|
81
81
|
export { createUnplugin as a, __ΩCreateUnpluginModuleResolutionFunctionsOptions as c, isUnpluginBuilderVariant as d, __ΩCreateUnpluginResolverOptions as i, createUnpluginModuleResolutionFunctions as l, CreateUnpluginResolverOptions as n, createUnpluginResolver as o, __ΩCreateUnpluginOptions as r, CreateUnpluginModuleResolutionFunctionsOptions as s, CreateUnpluginOptions as t, combineContexts as u };
|
|
82
|
-
//# sourceMappingURL=index-
|
|
82
|
+
//# sourceMappingURL=index-2JXW-b2-.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-2JXW-b2-.d.mts","names":[],"sources":["../../core/src/lib/unplugin/helpers.ts","../../core/src/lib/unplugin/module-resolution.ts","../../core/src/lib/unplugin/plugin.ts"],"sourcesContent":[],"mappings":";;;;;;AAgCA;;;;;;AAGiC,iBAHjB,eAGiB,CAAA,kBAFb,iBAEa,GAFO,oBAEP,EAAA,kBADb,iBACa,GADO,oBACP,CAAA,CAAA,QAAA,EAArB,SAAqB,EAAA,QAAA,EAAA,SAAA,CAAA,EAAY,SAAZ,GAAwB,SAAxB;;;;AAUjC;;;iBAAgB,wBAAA,uBAEN;;;UClBO,8CAAA;;ADGjB;;;;;;;;EAGyD,MAAA,CAAA,EAAA,OAAA;;AAUzD;;;;AChBA;AA6BA;;;;;;;;iBAAgB,yDACG,gBAAgB,wBAExB,oBACA,iDACR,KAAK;;;;UCzBS,6BAAA,SAAsC;EFNvC;;;;;;;;EAGyC,IAAA,CAAA,EAAA,MAAA;;AAUzD;;;;AChBA;AA6BA;AACmB,iBCHH,sBDGG,CAAA,iBCFA,aDEA,GCFgB,aDEhB,CAAA,CAAA,OAAA,ECAR,QDAQ,EAAA,OAAA,CAAA,ECCR,6BDDQ,CAAA,ECEhB,eDFgB,CCEA,QDFA,CAAA;AAAgB,UCwClB,qBAAA,SAA8B,6BDxCZ,CAAA;;;;;;;iBCgDnB,gCAAgC,gBAAgB,wBACrD,oBACA,wBACR,gBAAgB;;AAxEF,wCAA8B,GAAQ,EAAA"}
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
const require_chunk = require('./chunk-CbDLau6x.cjs');
|
|
3
|
-
const require_api = require('./api-
|
|
3
|
+
const require_api = require('./api-Dspa27jK.cjs');
|
|
4
4
|
require('./tsconfig-C8M8X6U0.cjs');
|
|
5
5
|
require('./plugin-utils-Ck3cx3w6.cjs');
|
|
6
6
|
require('./plugin-CZ_PJPpQ.cjs');
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { $ as __ΩPartialPlugin, $n as Hooks, $r as __ΩStoragePreset, $t as __ΩSelectHookResultItem, A as ResolvedAssetGlob, An as PluginHooksList, Ar as __ΩUnpluginFactory, At as SelectHookResultItem, B as __ΩDeployInlineConfig, Bn as __ΩHooksList, Br as StorageAdapter, Bt as __ΩContext, C as PluginConfigTuple, Cn as HookListOrders, Cr as UnpluginFactory, Ct as InitContextOptions, D as ProjectType, Dn as InferHookReturnType, Dr as __ΩInferUnpluginOptions, Dt as ResolveResult, E as PrepareInlineConfig, En as InferHookParameters, Er as __ΩBuilderVariant, Et as PluginContext, F as __ΩAnyUserConfig, Fn as UnpluginHookVariantField, Fr as CommandType, Ft as UnresolvedContext, G as __ΩInlineConfig, Gn as __ΩInferHooksListItem, Gr as VirtualFileExtension, Gt as __ΩFetchOptions, H as __ΩEnvironmentConfig, Hn as __ΩInferHookParameters, Hr as StoragePreset, Ht as __ΩEmitOptions, I as __ΩBuildInlineConfig, In as UnpluginHooksListItem, Ir as Commands, It as WithUnpluginBuildContext, J as __ΩLogLevel, Jn as __ΩUnpluginHookFunctions, Jr as WriteData, Jt as __ΩParseOptions, K as __ΩLintInlineConfig, Kn as __ΩPluginHooksList, Kr as VirtualFileMetadata, Kt as __ΩInitContextOptions, L as __ΩCleanInlineConfig, Ln as __ΩCallHookOptions, Lr as __ΩCommandType, Lt as WorkerProcess, M as ResolvedEntryTypeDefinition, Mn as UnpluginHookFunctions, Mr as __ΩUnpluginUserConfig, Mt as SourceFile, N as UserConfig, Nn as UnpluginHookList, Nr as API, Nt as TransformResult, O as ResolveConfig, On as InferHookThisType, Or as __ΩInferUnpluginVariant, Ot as Resolver, P as WorkspaceConfig, Pn as UnpluginHookVariant, Pr as __ΩAPI, Pt as UnimportContext, Q as __ΩParsedUserConfig, Qn as __ΩUnpluginHooksListItem, Qr as __ΩStoragePort, Qt as __ΩSelectHookResult, R as __ΩConfig, Rn as __ΩHookFields, Rr as __ΩCommands, Rt as __ΩAPIContext, S as PluginConfigObject, Sn as HookFields, Sr as UnpluginBuilderVariant, St as FetchOptions, T as PowerlinesCommand, Tn as InferHookFunction, Tr as UnpluginUserConfig, Tt as ParseOptions, U as __ΩEnvironmentResolvedConfig, Un as __ΩInferHookReturnType, Ur as VirtualFile, Ut as __ΩEnvironmentContext, V as __ΩDocsInlineConfig, Vn as __ΩInferHookFunction, Vr as StoragePort, Vt as __ΩEmitEntryOptions, W as __ΩInitialUserConfig, Wn as __ΩInferHookThisType, Wr as VirtualFileData, Wt as __ΩEnvironmentContextPlugin, X as __ΩOutputConfig, Xn as __ΩUnpluginHookVariant, Xr as __ΩResolveOptions, Xt as __ΩResolveResult, Y as __ΩNewInlineConfig, Yn as __ΩUnpluginHookList, Yr as WriteOptions, Yt as __ΩPluginContext, Z as __ΩOutputResolvedConfig, Zn as __ΩUnpluginHookVariantField, Zr as __ΩStorageAdapter, Zt as __ΩResolver, _ as OutputResolvedConfig, _n as __ΩReflectionLevel, _r as __ΩPluginNonHookFields, _t as Context, a as ConfigEnv, ai as __ΩWriteData, an as __ΩWithUnpluginBuildContext, ar as PluginHookObject, at as __ΩPowerlinesCommand, b as PartialPluginFactory, bn as __ΩTSConfig, br as InferUnpluginOptions, bt as EnvironmentContext, c as EnvironmentConfig, cn as ParsedTypeScriptConfig, cr as TypesResult, ct as __ΩResolveConfig, d as InlineConfig, dn as ReflectionMode, dr as __ΩPluginFields, dt as __ΩResolvedConfig, ei as __ΩVirtualFile, en as __ΩSelectHooksOptions, er as Plugin, et as __ΩPartialPluginFactory, f as LintInlineConfig, fn as TSCompilerOptions, fr as __ΩPluginHook, ft as __ΩResolvedEntryTypeDefinition, g as OutputConfig, gn as __ΩRawReflectionMode, gr as __ΩPluginHooks, gt as BuildPluginContext, h as NewInlineConfig, hn as __ΩParsedTypeScriptConfig, hr as __ΩPluginHookObject, ht as APIContext, i as Config, ii as __ΩVirtualFileSystemInterface, in as __ΩUnresolvedContext, ir as PluginHookFunctions, it as __ΩPluginFactory, j as ResolvedConfig, jn as PluginHooksListItem, jr as __ΩUnpluginOptions, jt as SelectHooksOptions, k as ResolveResolvedConfig, kn as InferHooksListItem, kr as __ΩUnpluginBuilderVariant, kt as SelectHookResult, l as EnvironmentResolvedConfig, ln as RawReflectionMode, lr as __ΩHooks, lt as __ΩResolveResolvedConfig, m as LogLevel, mn as __ΩDeepkitOptions, mr as __ΩPluginHookFunctions, mt as __ΩWorkspaceConfig, n as BuildInlineConfig, ni as __ΩVirtualFileExtension, nn as __ΩTransformResult, nr as PluginHook, nt as __ΩPluginConfigObject, o as DeployInlineConfig, oi as __ΩWriteOptions, on as __ΩWorkerProcess, or as PluginHooks, ot as __ΩPrepareInlineConfig, p as LogFn, pn as TSConfig, pr as __ΩPluginHookFields, pt as __ΩUserConfig, q as __ΩLogFn, qn as __ΩPluginHooksListItem, qr as VirtualFileSystemInterface, qt as __ΩMetaInfo, r as CleanInlineConfig, ri as __ΩVirtualFileMetadata, rn as __ΩUnimportContext, rr as PluginHookFields, rt as __ΩPluginConfigTuple, s as DocsInlineConfig, sn as DeepkitOptions, sr as PluginNonHookFields, st as __ΩProjectType, t as AnyUserConfig, ti as __ΩVirtualFileData, tn as __ΩSourceFile, tr as PluginFields, tt as __ΩPluginConfig, u as InitialUserConfig, un as ReflectionLevel, ur as __ΩPlugin, ut as __ΩResolvedAssetGlob, v as ParsedUserConfig, vn as __ΩReflectionMode, vr as __ΩTypesResult, vt as EmitEntryOptions, w as PluginFactory, wn as HooksList, wr as UnpluginOptions, wt as MetaInfo, x as PluginConfig, xn as CallHookOptions, xr as InferUnpluginVariant, xt as EnvironmentContextPlugin, y as PartialPlugin, yn as __ΩTSCompilerOptions, yr as BuilderVariant, yt as EmitOptions, z as __ΩConfigEnv, zn as __ΩHookListOrders, zr as ResolveOptions, zt as __ΩBuildPluginContext } from "./config-vnrrSxEB.cjs";
|
|
2
2
|
import { a as loadWorkspaceConfig, i as loadUserConfigFile, n as __ΩPartiallyResolvedContext, r as defineConfig, t as PartiallyResolvedContext } from "./config-J74ORCFY.cjs";
|
|
3
3
|
import { C as resolveInputs, S as resolveInput, _ as extendLog, a as getString, b as isTypeDefinition, c as FileHeaderOptions, d as getFileHeaderWarning, f as getFileHeaderWarningText, g as createLog, h as __ΩCreateLogOptions, i as getSourceFile, l as __ΩFileHeaderOptions, m as CreateLogOptions, n as generateSourceMap, o as format, p as getTypescriptFileHeader, r as getMagicString, s as formatFolder, t as writeFile, u as getFileHeader, v as getUniqueInputs, w as resolveInputsSync, x as resolveEntryOutput, y as isResolvedEntryTypeDefinition } from "./write-file-CpNWY8SV.cjs";
|
|
4
|
-
import { a as createUnplugin, c as __ΩCreateUnpluginModuleResolutionFunctionsOptions, d as isUnpluginBuilderVariant, i as __ΩCreateUnpluginResolverOptions, l as createUnpluginModuleResolutionFunctions, n as CreateUnpluginResolverOptions, o as createUnpluginResolver, r as __ΩCreateUnpluginOptions, s as CreateUnpluginModuleResolutionFunctionsOptions, t as CreateUnpluginOptions, u as combineContexts } from "./plugin-
|
|
4
|
+
import { a as createUnplugin, c as __ΩCreateUnpluginModuleResolutionFunctionsOptions, d as isUnpluginBuilderVariant, i as __ΩCreateUnpluginResolverOptions, l as createUnpluginModuleResolutionFunctions, n as CreateUnpluginResolverOptions, o as createUnpluginResolver, r as __ΩCreateUnpluginOptions, s as CreateUnpluginModuleResolutionFunctionsOptions, t as CreateUnpluginOptions, u as combineContexts } from "./plugin-B9TQt-p0.cjs";
|
|
5
5
|
import { a as FileStorage, c as PowerlinesAPI, i as FileMetadata_KeyValuePair, n as FileId, o as FileSystem, r as FileMetadata, s as _capnpFileId, t as createPowerlines } from "./index-DJ-k0GOX.cjs";
|
|
6
6
|
export { API, APIContext, AnyUserConfig, BuildInlineConfig, BuildPluginContext, BuilderVariant, CallHookOptions, CleanInlineConfig, CommandType, Commands, Config, ConfigEnv, Context, CreateLogOptions, CreateUnpluginModuleResolutionFunctionsOptions, CreateUnpluginOptions, CreateUnpluginResolverOptions, DeepkitOptions, DeployInlineConfig, DocsInlineConfig, EmitEntryOptions, EmitOptions, EnvironmentConfig, EnvironmentContext, EnvironmentContextPlugin, EnvironmentResolvedConfig, FetchOptions, FileHeaderOptions, FileId, FileMetadata, FileMetadata_KeyValuePair, FileStorage, FileSystem, HookFields, HookListOrders, Hooks, HooksList, InferHookFunction, InferHookParameters, InferHookReturnType, InferHookThisType, InferHooksListItem, InferUnpluginOptions, InferUnpluginVariant, InitContextOptions, InitialUserConfig, InlineConfig, LintInlineConfig, LogFn, LogLevel, MetaInfo, NewInlineConfig, OutputConfig, OutputResolvedConfig, ParseOptions, ParsedTypeScriptConfig, ParsedUserConfig, PartialPlugin, PartialPluginFactory, PartiallyResolvedContext, Plugin, PluginConfig, PluginConfigObject, PluginConfigTuple, PluginContext, PluginFactory, PluginFields, PluginHook, PluginHookFields, PluginHookFunctions, PluginHookObject, PluginHooks, PluginHooksList, PluginHooksListItem, PluginNonHookFields, PowerlinesAPI, PowerlinesAPI as default, PowerlinesCommand, PrepareInlineConfig, ProjectType, RawReflectionMode, ReflectionLevel, ReflectionMode, ResolveConfig, ResolveOptions, ResolveResolvedConfig, ResolveResult, ResolvedAssetGlob, ResolvedConfig, ResolvedEntryTypeDefinition, Resolver, SelectHookResult, SelectHookResultItem, SelectHooksOptions, SourceFile, StorageAdapter, StoragePort, StoragePreset, TSCompilerOptions, TSConfig, TransformResult, TypesResult, UnimportContext, UnpluginBuilderVariant, UnpluginFactory, UnpluginHookFunctions, UnpluginHookList, UnpluginHookVariant, UnpluginHookVariantField, UnpluginHooksListItem, UnpluginOptions, UnpluginUserConfig, UnresolvedContext, UserConfig, VirtualFile, VirtualFileData, VirtualFileExtension, VirtualFileMetadata, VirtualFileSystemInterface, WithUnpluginBuildContext, WorkerProcess, WorkspaceConfig, WriteData, WriteOptions, __ΩAPI, __ΩAPIContext, __ΩAnyUserConfig, __ΩBuildInlineConfig, __ΩBuildPluginContext, __ΩBuilderVariant, __ΩCallHookOptions, __ΩCleanInlineConfig, __ΩCommandType, __ΩCommands, __ΩConfig, __ΩConfigEnv, __ΩContext, __ΩCreateLogOptions, __ΩCreateUnpluginModuleResolutionFunctionsOptions, __ΩCreateUnpluginOptions, __ΩCreateUnpluginResolverOptions, __ΩDeepkitOptions, __ΩDeployInlineConfig, __ΩDocsInlineConfig, __ΩEmitEntryOptions, __ΩEmitOptions, __ΩEnvironmentConfig, __ΩEnvironmentContext, __ΩEnvironmentContextPlugin, __ΩEnvironmentResolvedConfig, __ΩFetchOptions, __ΩFileHeaderOptions, __ΩHookFields, __ΩHookListOrders, __ΩHooks, __ΩHooksList, __ΩInferHookFunction, __ΩInferHookParameters, __ΩInferHookReturnType, __ΩInferHookThisType, __ΩInferHooksListItem, __ΩInferUnpluginOptions, __ΩInferUnpluginVariant, __ΩInitContextOptions, __ΩInitialUserConfig, __ΩInlineConfig, __ΩLintInlineConfig, __ΩLogFn, __ΩLogLevel, __ΩMetaInfo, __ΩNewInlineConfig, __ΩOutputConfig, __ΩOutputResolvedConfig, __ΩParseOptions, __ΩParsedTypeScriptConfig, __ΩParsedUserConfig, __ΩPartialPlugin, __ΩPartialPluginFactory, __ΩPartiallyResolvedContext, __ΩPlugin, __ΩPluginConfig, __ΩPluginConfigObject, __ΩPluginConfigTuple, __ΩPluginContext, __ΩPluginFactory, __ΩPluginFields, __ΩPluginHook, __ΩPluginHookFields, __ΩPluginHookFunctions, __ΩPluginHookObject, __ΩPluginHooks, __ΩPluginHooksList, __ΩPluginHooksListItem, __ΩPluginNonHookFields, __ΩPowerlinesCommand, __ΩPrepareInlineConfig, __ΩProjectType, __ΩRawReflectionMode, __ΩReflectionLevel, __ΩReflectionMode, __ΩResolveConfig, __ΩResolveOptions, __ΩResolveResolvedConfig, __ΩResolveResult, __ΩResolvedAssetGlob, __ΩResolvedConfig, __ΩResolvedEntryTypeDefinition, __ΩResolver, __ΩSelectHookResult, __ΩSelectHookResultItem, __ΩSelectHooksOptions, __ΩSourceFile, __ΩStorageAdapter, __ΩStoragePort, __ΩStoragePreset, __ΩTSCompilerOptions, __ΩTSConfig, __ΩTransformResult, __ΩTypesResult, __ΩUnimportContext, __ΩUnpluginBuilderVariant, __ΩUnpluginFactory, __ΩUnpluginHookFunctions, __ΩUnpluginHookList, __ΩUnpluginHookVariant, __ΩUnpluginHookVariantField, __ΩUnpluginHooksListItem, __ΩUnpluginOptions, __ΩUnpluginUserConfig, __ΩUnresolvedContext, __ΩUserConfig, __ΩVirtualFile, __ΩVirtualFileData, __ΩVirtualFileExtension, __ΩVirtualFileMetadata, __ΩVirtualFileSystemInterface, __ΩWithUnpluginBuildContext, __ΩWorkerProcess, __ΩWorkspaceConfig, __ΩWriteData, __ΩWriteOptions, _capnpFileId, combineContexts, createLog, createPowerlines, createUnplugin, createUnpluginModuleResolutionFunctions, createUnpluginResolver, defineConfig, extendLog, format, formatFolder, generateSourceMap, getFileHeader, getFileHeaderWarning, getFileHeaderWarningText, getMagicString, getSourceFile, getString, getTypescriptFileHeader, getUniqueInputs, isResolvedEntryTypeDefinition, isTypeDefinition, isUnpluginBuilderVariant, loadUserConfigFile, loadWorkspaceConfig, resolveEntryOutput, resolveInput, resolveInputs, resolveInputsSync, writeFile };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { $ as __ΩPartialPlugin, $n as Hooks, $r as __ΩStoragePreset, $t as __ΩSelectHookResultItem, A as ResolvedAssetGlob, An as PluginHooksList, Ar as __ΩUnpluginFactory, At as SelectHookResultItem, B as __ΩDeployInlineConfig, Bn as __ΩHooksList, Br as StorageAdapter, Bt as __ΩContext, C as PluginConfigTuple, Cn as HookListOrders, Cr as UnpluginFactory, Ct as InitContextOptions, D as ProjectType, Dn as InferHookReturnType, Dr as __ΩInferUnpluginOptions, Dt as ResolveResult, E as PrepareInlineConfig, En as InferHookParameters, Er as __ΩBuilderVariant, Et as PluginContext, F as __ΩAnyUserConfig, Fn as UnpluginHookVariantField, Fr as CommandType, Ft as UnresolvedContext, G as __ΩInlineConfig, Gn as __ΩInferHooksListItem, Gr as VirtualFileExtension, Gt as __ΩFetchOptions, H as __ΩEnvironmentConfig, Hn as __ΩInferHookParameters, Hr as StoragePreset, Ht as __ΩEmitOptions, I as __ΩBuildInlineConfig, In as UnpluginHooksListItem, Ir as Commands, It as WithUnpluginBuildContext, J as __ΩLogLevel, Jn as __ΩUnpluginHookFunctions, Jr as WriteData, Jt as __ΩParseOptions, K as __ΩLintInlineConfig, Kn as __ΩPluginHooksList, Kr as VirtualFileMetadata, Kt as __ΩInitContextOptions, L as __ΩCleanInlineConfig, Ln as __ΩCallHookOptions, Lr as __ΩCommandType, Lt as WorkerProcess, M as ResolvedEntryTypeDefinition, Mn as UnpluginHookFunctions, Mr as __ΩUnpluginUserConfig, Mt as SourceFile, N as UserConfig, Nn as UnpluginHookList, Nr as API, Nt as TransformResult, O as ResolveConfig, On as InferHookThisType, Or as __ΩInferUnpluginVariant, Ot as Resolver, P as WorkspaceConfig, Pn as UnpluginHookVariant, Pr as __ΩAPI, Pt as UnimportContext, Q as __ΩParsedUserConfig, Qn as __ΩUnpluginHooksListItem, Qr as __ΩStoragePort, Qt as __ΩSelectHookResult, R as __ΩConfig, Rn as __ΩHookFields, Rr as __ΩCommands, Rt as __ΩAPIContext, S as PluginConfigObject, Sn as HookFields, Sr as UnpluginBuilderVariant, St as FetchOptions, T as PowerlinesCommand, Tn as InferHookFunction, Tr as UnpluginUserConfig, Tt as ParseOptions, U as __ΩEnvironmentResolvedConfig, Un as __ΩInferHookReturnType, Ur as VirtualFile, Ut as __ΩEnvironmentContext, V as __ΩDocsInlineConfig, Vn as __ΩInferHookFunction, Vr as StoragePort, Vt as __ΩEmitEntryOptions, W as __ΩInitialUserConfig, Wn as __ΩInferHookThisType, Wr as VirtualFileData, Wt as __ΩEnvironmentContextPlugin, X as __ΩOutputConfig, Xn as __ΩUnpluginHookVariant, Xr as __ΩResolveOptions, Xt as __ΩResolveResult, Y as __ΩNewInlineConfig, Yn as __ΩUnpluginHookList, Yr as WriteOptions, Yt as __ΩPluginContext, Z as __ΩOutputResolvedConfig, Zn as __ΩUnpluginHookVariantField, Zr as __ΩStorageAdapter, Zt as __ΩResolver, _ as OutputResolvedConfig, _n as __ΩReflectionLevel, _r as __ΩPluginNonHookFields, _t as Context, a as ConfigEnv, ai as __ΩWriteData, an as __ΩWithUnpluginBuildContext, ar as PluginHookObject, at as __ΩPowerlinesCommand, b as PartialPluginFactory, bn as __ΩTSConfig, br as InferUnpluginOptions, bt as EnvironmentContext, c as EnvironmentConfig, cn as ParsedTypeScriptConfig, cr as TypesResult, ct as __ΩResolveConfig, d as InlineConfig, dn as ReflectionMode, dr as __ΩPluginFields, dt as __ΩResolvedConfig, ei as __ΩVirtualFile, en as __ΩSelectHooksOptions, er as Plugin, et as __ΩPartialPluginFactory, f as LintInlineConfig, fn as TSCompilerOptions, fr as __ΩPluginHook, ft as __ΩResolvedEntryTypeDefinition, g as OutputConfig, gn as __ΩRawReflectionMode, gr as __ΩPluginHooks, gt as BuildPluginContext, h as NewInlineConfig, hn as __ΩParsedTypeScriptConfig, hr as __ΩPluginHookObject, ht as APIContext, i as Config, ii as __ΩVirtualFileSystemInterface, in as __ΩUnresolvedContext, ir as PluginHookFunctions, it as __ΩPluginFactory, j as ResolvedConfig, jn as PluginHooksListItem, jr as __ΩUnpluginOptions, jt as SelectHooksOptions, k as ResolveResolvedConfig, kn as InferHooksListItem, kr as __ΩUnpluginBuilderVariant, kt as SelectHookResult, l as EnvironmentResolvedConfig, ln as RawReflectionMode, lr as __ΩHooks, lt as __ΩResolveResolvedConfig, m as LogLevel, mn as __ΩDeepkitOptions, mr as __ΩPluginHookFunctions, mt as __ΩWorkspaceConfig, n as BuildInlineConfig, ni as __ΩVirtualFileExtension, nn as __ΩTransformResult, nr as PluginHook, nt as __ΩPluginConfigObject, o as DeployInlineConfig, oi as __ΩWriteOptions, on as __ΩWorkerProcess, or as PluginHooks, ot as __ΩPrepareInlineConfig, p as LogFn, pn as TSConfig, pr as __ΩPluginHookFields, pt as __ΩUserConfig, q as __ΩLogFn, qn as __ΩPluginHooksListItem, qr as VirtualFileSystemInterface, qt as __ΩMetaInfo, r as CleanInlineConfig, ri as __ΩVirtualFileMetadata, rn as __ΩUnimportContext, rr as PluginHookFields, rt as __ΩPluginConfigTuple, s as DocsInlineConfig, sn as DeepkitOptions, sr as PluginNonHookFields, st as __ΩProjectType, t as AnyUserConfig, ti as __ΩVirtualFileData, tn as __ΩSourceFile, tr as PluginFields, tt as __ΩPluginConfig, u as InitialUserConfig, un as ReflectionLevel, ur as __ΩPlugin, ut as __ΩResolvedAssetGlob, v as ParsedUserConfig, vn as __ΩReflectionMode, vr as __ΩTypesResult, vt as EmitEntryOptions, w as PluginFactory, wn as HooksList, wr as UnpluginOptions, wt as MetaInfo, x as PluginConfig, xn as CallHookOptions, xr as InferUnpluginVariant, xt as EnvironmentContextPlugin, y as PartialPlugin, yn as __ΩTSCompilerOptions, yr as BuilderVariant, yt as EmitOptions, z as __ΩConfigEnv, zn as __ΩHookListOrders, zr as ResolveOptions, zt as __ΩBuildPluginContext } from "./config-CK756s0L.mjs";
|
|
2
2
|
import { a as loadWorkspaceConfig, i as loadUserConfigFile, n as __ΩPartiallyResolvedContext, r as defineConfig, t as PartiallyResolvedContext } from "./config-CiPXgwzt.mjs";
|
|
3
3
|
import { C as resolveInputs, S as resolveInput, _ as extendLog, a as getString, b as isTypeDefinition, c as FileHeaderOptions, d as getFileHeaderWarning, f as getFileHeaderWarningText, g as createLog, h as __ΩCreateLogOptions, i as getSourceFile, l as __ΩFileHeaderOptions, m as CreateLogOptions, n as generateSourceMap, o as format, p as getTypescriptFileHeader, r as getMagicString, s as formatFolder, t as writeFile, u as getFileHeader, v as getUniqueInputs, w as resolveInputsSync, x as resolveEntryOutput, y as isResolvedEntryTypeDefinition } from "./index-C7W0kmm7.mjs";
|
|
4
|
-
import { a as createUnplugin, c as __ΩCreateUnpluginModuleResolutionFunctionsOptions, d as isUnpluginBuilderVariant, i as __ΩCreateUnpluginResolverOptions, l as createUnpluginModuleResolutionFunctions, n as CreateUnpluginResolverOptions, o as createUnpluginResolver, r as __ΩCreateUnpluginOptions, s as CreateUnpluginModuleResolutionFunctionsOptions, t as CreateUnpluginOptions, u as combineContexts } from "./index-
|
|
4
|
+
import { a as createUnplugin, c as __ΩCreateUnpluginModuleResolutionFunctionsOptions, d as isUnpluginBuilderVariant, i as __ΩCreateUnpluginResolverOptions, l as createUnpluginModuleResolutionFunctions, n as CreateUnpluginResolverOptions, o as createUnpluginResolver, r as __ΩCreateUnpluginOptions, s as CreateUnpluginModuleResolutionFunctionsOptions, t as CreateUnpluginOptions, u as combineContexts } from "./index-2JXW-b2-.mjs";
|
|
5
5
|
import "./types-Bh_vLuQ0.mjs";
|
|
6
6
|
import { a as FileStorage, c as PowerlinesAPI, i as FileMetadata_KeyValuePair, n as FileId, o as FileSystem, r as FileMetadata, s as _capnpFileId, t as createPowerlines } from "./index-6BLROVtJ.mjs";
|
|
7
7
|
export { API, APIContext, AnyUserConfig, BuildInlineConfig, BuildPluginContext, BuilderVariant, CallHookOptions, CleanInlineConfig, CommandType, Commands, Config, ConfigEnv, Context, CreateLogOptions, CreateUnpluginModuleResolutionFunctionsOptions, CreateUnpluginOptions, CreateUnpluginResolverOptions, DeepkitOptions, DeployInlineConfig, DocsInlineConfig, EmitEntryOptions, EmitOptions, EnvironmentConfig, EnvironmentContext, EnvironmentContextPlugin, EnvironmentResolvedConfig, FetchOptions, FileHeaderOptions, FileId, FileMetadata, FileMetadata_KeyValuePair, FileStorage, FileSystem, HookFields, HookListOrders, Hooks, HooksList, InferHookFunction, InferHookParameters, InferHookReturnType, InferHookThisType, InferHooksListItem, InferUnpluginOptions, InferUnpluginVariant, InitContextOptions, InitialUserConfig, InlineConfig, LintInlineConfig, LogFn, LogLevel, MetaInfo, NewInlineConfig, OutputConfig, OutputResolvedConfig, ParseOptions, ParsedTypeScriptConfig, ParsedUserConfig, PartialPlugin, PartialPluginFactory, PartiallyResolvedContext, Plugin, PluginConfig, PluginConfigObject, PluginConfigTuple, PluginContext, PluginFactory, PluginFields, PluginHook, PluginHookFields, PluginHookFunctions, PluginHookObject, PluginHooks, PluginHooksList, PluginHooksListItem, PluginNonHookFields, PowerlinesAPI, PowerlinesAPI as default, PowerlinesCommand, PrepareInlineConfig, ProjectType, RawReflectionMode, ReflectionLevel, ReflectionMode, ResolveConfig, ResolveOptions, ResolveResolvedConfig, ResolveResult, ResolvedAssetGlob, ResolvedConfig, ResolvedEntryTypeDefinition, Resolver, SelectHookResult, SelectHookResultItem, SelectHooksOptions, SourceFile, StorageAdapter, StoragePort, StoragePreset, TSCompilerOptions, TSConfig, TransformResult, TypesResult, UnimportContext, UnpluginBuilderVariant, UnpluginFactory, UnpluginHookFunctions, UnpluginHookList, UnpluginHookVariant, UnpluginHookVariantField, UnpluginHooksListItem, UnpluginOptions, UnpluginUserConfig, UnresolvedContext, UserConfig, VirtualFile, VirtualFileData, VirtualFileExtension, VirtualFileMetadata, VirtualFileSystemInterface, WithUnpluginBuildContext, WorkerProcess, WorkspaceConfig, WriteData, WriteOptions, __ΩAPI, __ΩAPIContext, __ΩAnyUserConfig, __ΩBuildInlineConfig, __ΩBuildPluginContext, __ΩBuilderVariant, __ΩCallHookOptions, __ΩCleanInlineConfig, __ΩCommandType, __ΩCommands, __ΩConfig, __ΩConfigEnv, __ΩContext, __ΩCreateLogOptions, __ΩCreateUnpluginModuleResolutionFunctionsOptions, __ΩCreateUnpluginOptions, __ΩCreateUnpluginResolverOptions, __ΩDeepkitOptions, __ΩDeployInlineConfig, __ΩDocsInlineConfig, __ΩEmitEntryOptions, __ΩEmitOptions, __ΩEnvironmentConfig, __ΩEnvironmentContext, __ΩEnvironmentContextPlugin, __ΩEnvironmentResolvedConfig, __ΩFetchOptions, __ΩFileHeaderOptions, __ΩHookFields, __ΩHookListOrders, __ΩHooks, __ΩHooksList, __ΩInferHookFunction, __ΩInferHookParameters, __ΩInferHookReturnType, __ΩInferHookThisType, __ΩInferHooksListItem, __ΩInferUnpluginOptions, __ΩInferUnpluginVariant, __ΩInitContextOptions, __ΩInitialUserConfig, __ΩInlineConfig, __ΩLintInlineConfig, __ΩLogFn, __ΩLogLevel, __ΩMetaInfo, __ΩNewInlineConfig, __ΩOutputConfig, __ΩOutputResolvedConfig, __ΩParseOptions, __ΩParsedTypeScriptConfig, __ΩParsedUserConfig, __ΩPartialPlugin, __ΩPartialPluginFactory, __ΩPartiallyResolvedContext, __ΩPlugin, __ΩPluginConfig, __ΩPluginConfigObject, __ΩPluginConfigTuple, __ΩPluginContext, __ΩPluginFactory, __ΩPluginFields, __ΩPluginHook, __ΩPluginHookFields, __ΩPluginHookFunctions, __ΩPluginHookObject, __ΩPluginHooks, __ΩPluginHooksList, __ΩPluginHooksListItem, __ΩPluginNonHookFields, __ΩPowerlinesCommand, __ΩPrepareInlineConfig, __ΩProjectType, __ΩRawReflectionMode, __ΩReflectionLevel, __ΩReflectionMode, __ΩResolveConfig, __ΩResolveOptions, __ΩResolveResolvedConfig, __ΩResolveResult, __ΩResolvedAssetGlob, __ΩResolvedConfig, __ΩResolvedEntryTypeDefinition, __ΩResolver, __ΩSelectHookResult, __ΩSelectHookResultItem, __ΩSelectHooksOptions, __ΩSourceFile, __ΩStorageAdapter, __ΩStoragePort, __ΩStoragePreset, __ΩTSCompilerOptions, __ΩTSConfig, __ΩTransformResult, __ΩTypesResult, __ΩUnimportContext, __ΩUnpluginBuilderVariant, __ΩUnpluginFactory, __ΩUnpluginHookFunctions, __ΩUnpluginHookList, __ΩUnpluginHookVariant, __ΩUnpluginHookVariantField, __ΩUnpluginHooksListItem, __ΩUnpluginOptions, __ΩUnpluginUserConfig, __ΩUnresolvedContext, __ΩUserConfig, __ΩVirtualFile, __ΩVirtualFileData, __ΩVirtualFileExtension, __ΩVirtualFileMetadata, __ΩVirtualFileSystemInterface, __ΩWithUnpluginBuildContext, __ΩWorkerProcess, __ΩWorkspaceConfig, __ΩWriteData, __ΩWriteOptions, _capnpFileId, combineContexts, createLog, createPowerlines, createUnplugin, createUnpluginModuleResolutionFunctions, createUnpluginResolver, defineConfig, extendLog, format, formatFolder, generateSourceMap, getFileHeader, getFileHeaderWarning, getFileHeaderWarningText, getMagicString, getSourceFile, getString, getTypescriptFileHeader, getUniqueInputs, isResolvedEntryTypeDefinition, isTypeDefinition, isUnpluginBuilderVariant, loadUserConfigFile, loadWorkspaceConfig, resolveEntryOutput, resolveInput, resolveInputs, resolveInputsSync, writeFile };
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as _capnpFileId, f as FileId, g as FileSystem, h as FileStorage, m as FileMetadata_KeyValuePair, p as FileMetadata, t as PowerlinesAPI } from "./api-
|
|
1
|
+
import { _ as _capnpFileId, f as FileId, g as FileSystem, h as FileStorage, m as FileMetadata_KeyValuePair, p as FileMetadata, t as PowerlinesAPI } from "./api-D-RIxwbi.mjs";
|
|
2
2
|
import "./tsconfig-B92heKit.mjs";
|
|
3
3
|
import "./plugin-utils-C3HnZJl1.mjs";
|
|
4
4
|
import "./plugin-E5foRD0k.mjs";
|
package/dist/next.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
require('./api-
|
|
2
|
+
require('./api-Dspa27jK.cjs');
|
|
3
3
|
require('./tsconfig-C8M8X6U0.cjs');
|
|
4
4
|
require('./plugin-utils-Ck3cx3w6.cjs');
|
|
5
5
|
require('./plugin-CZ_PJPpQ.cjs');
|
|
@@ -8,7 +8,7 @@ require('./constants-CZh5rsgh.cjs');
|
|
|
8
8
|
require('./config-D86Vw7SC.cjs');
|
|
9
9
|
require('./utils-BbDma_5Y.cjs');
|
|
10
10
|
require('./virtual-B1MLgqnQ.cjs');
|
|
11
|
-
const require_webpack = require('./webpack-
|
|
11
|
+
const require_webpack = require('./webpack-CKrlgWVq.cjs');
|
|
12
12
|
|
|
13
13
|
//#region src/next.ts
|
|
14
14
|
/**
|
package/dist/next.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./api-
|
|
1
|
+
import "./api-D-RIxwbi.mjs";
|
|
2
2
|
import "./tsconfig-B92heKit.mjs";
|
|
3
3
|
import "./plugin-utils-C3HnZJl1.mjs";
|
|
4
4
|
import "./plugin-E5foRD0k.mjs";
|
|
@@ -7,7 +7,7 @@ import "./constants-cXxSHhNp.mjs";
|
|
|
7
7
|
import "./config-D4Fh2gQL.mjs";
|
|
8
8
|
import "./utils-DoQcX7Sk.mjs";
|
|
9
9
|
import "./virtual-B9imjOqe.mjs";
|
|
10
|
-
import { n as webpack_default } from "./webpack-
|
|
10
|
+
import { n as webpack_default } from "./webpack-z0CSoK50.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/next.ts
|
|
13
13
|
/**
|
package/dist/nuxt.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
const require_chunk = require('./chunk-CbDLau6x.cjs');
|
|
3
|
-
const require_api = require('./api-
|
|
3
|
+
const require_api = require('./api-Dspa27jK.cjs');
|
|
4
4
|
require('./tsconfig-C8M8X6U0.cjs');
|
|
5
5
|
require('./plugin-utils-Ck3cx3w6.cjs');
|
|
6
6
|
require('./plugin-CZ_PJPpQ.cjs');
|
|
@@ -12,8 +12,8 @@ require('./virtual-B1MLgqnQ.cjs');
|
|
|
12
12
|
require('./resolve-options-BQnTgg3V.cjs');
|
|
13
13
|
require('./resolve-options-vyFhhkLp.cjs');
|
|
14
14
|
require('./resolve-options-lxQ2pm0W.cjs');
|
|
15
|
-
const require_vite = require('./vite-
|
|
16
|
-
const require_webpack = require('./webpack-
|
|
15
|
+
const require_vite = require('./vite-D-f0L5Sn.cjs');
|
|
16
|
+
const require_webpack = require('./webpack-CKrlgWVq.cjs');
|
|
17
17
|
let __nuxt_kit = require("@nuxt/kit");
|
|
18
18
|
|
|
19
19
|
//#region src/nuxt.ts
|
package/dist/nuxt.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { N as UserConfig } from "./config-CK756s0L.mjs";
|
|
2
2
|
import "./config-CiPXgwzt.mjs";
|
|
3
3
|
import "./index-C7W0kmm7.mjs";
|
|
4
|
-
import "./index-
|
|
4
|
+
import "./index-2JXW-b2-.mjs";
|
|
5
5
|
import "./types-Bh_vLuQ0.mjs";
|
|
6
6
|
import * as _nuxt_schema0 from "@nuxt/schema";
|
|
7
7
|
|
package/dist/nuxt.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { v as name, y as version } from "./api-
|
|
1
|
+
import { v as name, y as version } from "./api-D-RIxwbi.mjs";
|
|
2
2
|
import "./tsconfig-B92heKit.mjs";
|
|
3
3
|
import "./plugin-utils-C3HnZJl1.mjs";
|
|
4
4
|
import "./plugin-E5foRD0k.mjs";
|
|
@@ -10,8 +10,8 @@ import "./virtual-B9imjOqe.mjs";
|
|
|
10
10
|
import "./resolve-options-DHL3RM8F.mjs";
|
|
11
11
|
import "./resolve-options-6sXFqzEA.mjs";
|
|
12
12
|
import "./resolve-options-D-RGs8j8.mjs";
|
|
13
|
-
import { n as vite_default } from "./vite-
|
|
14
|
-
import { n as webpack_default } from "./webpack-
|
|
13
|
+
import { n as vite_default } from "./vite-5WSLwM5t.mjs";
|
|
14
|
+
import { n as webpack_default } from "./webpack-z0CSoK50.mjs";
|
|
15
15
|
import { addVitePlugin, addWebpackPlugin, defineNuxtModule } from "@nuxt/kit";
|
|
16
16
|
|
|
17
17
|
//#region src/nuxt.ts
|
|
@@ -25,7 +25,7 @@ interface CreateUnpluginModuleResolutionFunctionsOptions {
|
|
|
25
25
|
* An indicator of whether to prefix virtual module IDs with a specific string. This is useful for ensuring that virtual modules are only processed by the plugin and not by other plugins or the bundler itself.
|
|
26
26
|
*
|
|
27
27
|
* @remarks
|
|
28
|
-
* - If set to `true`, virtual module IDs will be prefixed with the string `
|
|
28
|
+
* - If set to `true`, virtual module IDs will be prefixed with the string `__powerlines-virtual:`.
|
|
29
29
|
* - If set to `false`, no prefix will be added to virtual module IDs.
|
|
30
30
|
*
|
|
31
31
|
* @defaultValue true
|
|
@@ -79,4 +79,4 @@ declare type __ΩCreateUnpluginResolverOptions = any[];
|
|
|
79
79
|
declare type __ΩCreateUnpluginOptions = any[];
|
|
80
80
|
//#endregion
|
|
81
81
|
export { createUnplugin as a, __ΩCreateUnpluginModuleResolutionFunctionsOptions as c, isUnpluginBuilderVariant as d, __ΩCreateUnpluginResolverOptions as i, createUnpluginModuleResolutionFunctions as l, CreateUnpluginResolverOptions as n, createUnpluginResolver as o, __ΩCreateUnpluginOptions as r, CreateUnpluginModuleResolutionFunctionsOptions as s, CreateUnpluginOptions as t, combineContexts as u };
|
|
82
|
-
//# sourceMappingURL=plugin-
|
|
82
|
+
//# sourceMappingURL=plugin-B9TQt-p0.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-
|
|
1
|
+
{"version":3,"file":"plugin-B9TQt-p0.d.cts","names":[],"sources":["../../core/src/lib/unplugin/helpers.ts","../../core/src/lib/unplugin/module-resolution.ts","../../core/src/lib/unplugin/plugin.ts"],"sourcesContent":[],"mappings":";;;;;;AAgCA;;;;;;AAGiC,iBAHjB,eAGiB,CAAA,kBAFb,iBAEa,GAFO,oBAEP,EAAA,kBADb,iBACa,GADO,oBACP,CAAA,CAAA,QAAA,EAArB,SAAqB,EAAA,QAAA,EAAA,SAAA,CAAA,EAAY,SAAZ,GAAwB,SAAxB;;;;AAUjC;;;iBAAgB,wBAAA,uBAEN;;;UClBO,8CAAA;;ADGjB;;;;;;;;EAGyD,MAAA,CAAA,EAAA,OAAA;;AAUzD;;;;AChBA;AA6BA;;;;;;;;iBAAgB,yDACG,gBAAgB,wBAExB,oBACA,iDACR,KAAK;;;;UCzBS,6BAAA,SAAsC;EFNvC;;;;;;;;EAGyC,IAAA,CAAA,EAAA,MAAA;;AAUzD;;;;AChBA;AA6BA;AACmB,iBCHH,sBDGG,CAAA,iBCFA,aDEA,GCFgB,aDEhB,CAAA,CAAA,OAAA,ECAR,QDAQ,EAAA,OAAA,CAAA,ECCR,6BDDQ,CAAA,ECEhB,eDFgB,CCEA,QDFA,CAAA;AAAgB,UCwClB,qBAAA,SAA8B,6BDxCZ,CAAA;;;;;;;iBCgDnB,gCAAgC,gBAAgB,wBACrD,oBACA,wBACR,gBAAgB;;AAxEF,wCAA8B,GAAQ,EAAA"}
|
package/dist/plugin-utils.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { C as PluginConfigTuple, Dt as ResolveResult, Et as PluginContext, Ft as UnresolvedContext, In as UnpluginHooksListItem, O as ResolveConfig, S as PluginConfigObject, Sn as HookFields, Sr as UnpluginBuilderVariant, _t as Context, ar as PluginHookObject, b as PartialPluginFactory, c as EnvironmentConfig, cr as TypesResult, er as Plugin, j as ResolvedConfig, jn as PluginHooksListItem, l as EnvironmentResolvedConfig, nr as PluginHook, or as PluginHooks, rr as PluginHookFields, w as PluginFactory, wr as UnpluginOptions$1, x as PluginConfig, y as PartialPlugin } from "./config-CK756s0L.mjs";
|
|
2
2
|
import "./config-CiPXgwzt.mjs";
|
|
3
3
|
import "./index-C7W0kmm7.mjs";
|
|
4
|
-
import "./index-
|
|
4
|
+
import "./index-2JXW-b2-.mjs";
|
|
5
5
|
import "./types-Bh_vLuQ0.mjs";
|
|
6
6
|
import "./index-6BLROVtJ.mjs";
|
|
7
7
|
import * as unplugin0 from "unplugin";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CbDLau6x.cjs');
|
|
2
|
-
const require_api = require('./api-
|
|
2
|
+
const require_api = require('./api-Dspa27jK.cjs');
|
|
3
3
|
const require_resolve_options = require('./resolve-options-lxQ2pm0W.cjs');
|
|
4
4
|
let __stryke_convert_to_array = require("@stryke/convert/to-array");
|
|
5
5
|
let defu = require("defu");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as createUnpluginFactory, o as createUnplugin } from "./api-
|
|
1
|
+
import { a as createUnpluginFactory, o as createUnplugin } from "./api-D-RIxwbi.mjs";
|
|
2
2
|
import { t as resolveOptions } from "./resolve-options-D-RGs8j8.mjs";
|
|
3
3
|
import { toArray } from "@stryke/convert/to-array";
|
|
4
4
|
import defu, { defu as defu$1 } from "defu";
|
|
@@ -62,4 +62,4 @@ var rolldown_default = unplugin;
|
|
|
62
62
|
|
|
63
63
|
//#endregion
|
|
64
64
|
export { unplugin as n, src_default as r, rolldown_default as t };
|
|
65
|
-
//# sourceMappingURL=rolldown-
|
|
65
|
+
//# sourceMappingURL=rolldown-DM-vGV3t.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rolldown-
|
|
1
|
+
{"version":3,"file":"rolldown-DM-vGV3t.mjs","names":["createRolldownPlugin","build","createRolldownPlugin","plugin","defu"],"sources":["../../plugin-rolldown/src/helpers/unplugin.ts","../../plugin-rolldown/src/index.ts","../src/rolldown.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { createUnplugin } from \"@powerlines/core/lib/unplugin\";\nimport { createEsbuildPlugin } from \"unplugin\";\nimport { RolldownPluginContext } from \"../types/plugin\";\n\nexport function createRolldownPlugin(context: RolldownPluginContext) {\n return createEsbuildPlugin(createUnplugin(context))({});\n}\n","/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { Plugin } from \"@powerlines/core/types/plugin\";\nimport { toArray } from \"@stryke/convert/to-array\";\nimport defu from \"defu\";\nimport { rolldown as build } from \"rolldown\";\nimport { resolveOptions } from \"./helpers/resolve-options\";\nimport { createRolldownPlugin } from \"./helpers/unplugin\";\nimport {\n RolldownPluginContext,\n RolldownPluginOptions,\n RolldownPluginResolvedConfig\n} from \"./types/plugin\";\n\nexport * from \"./helpers\";\nexport * from \"./types\";\n\ndeclare module \"@powerlines/core\" {\n interface Config {\n rolldown?: RolldownPluginOptions;\n }\n}\n\n/**\n * A Powerlines plugin to assist in developing other Powerlines plugins.\n */\nexport const plugin = <\n TContext extends RolldownPluginContext = RolldownPluginContext\n>(\n options: RolldownPluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"rolldown\",\n config() {\n return {\n output: {\n format: [\"cjs\", \"esm\"]\n },\n rolldown: {\n ...options\n }\n } as Partial<RolldownPluginResolvedConfig>;\n },\n async build() {\n const result = await build(\n defu(\n {\n plugins: [createRolldownPlugin(this)]\n },\n resolveOptions(this)\n )\n );\n\n await Promise.all(\n toArray(this.config.output.format).map(async format =>\n result.write({\n format\n })\n )\n );\n }\n };\n};\n\nexport default plugin;\n","/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { resolveOptions } from \"@powerlines/plugin-rolldown/helpers/resolve-options\";\nimport {\n RolldownPluginContext,\n RolldownPluginUserConfig\n} from \"@powerlines/plugin-rolldown/types/plugin\";\nimport { defu } from \"defu\";\nimport type { InputOptions } from \"rolldown\";\nimport { createRolldownPlugin } from \"unplugin\";\nimport { createUnpluginFactory } from \"./unplugin\";\n\nexport {\n default as plugin,\n default as rolldown\n} from \"@powerlines/plugin-rolldown\";\n\n/**\n * A Rolldown plugin that will invoke the Powerlines API hooks during the build process.\n *\n * @see https://rollupjs.org/guide/en/#plugins-overview\n *\n * @example\n * ```ts\n * // rollup.config.ts\n * import powerlines from \"powerlines/rollup\";\n *\n * export default defineConfig({\n * plugins: [powerlines({ name: \"example-app\", ... })],\n * })\n * ```\n */\nexport const unplugin = createRolldownPlugin<Partial<RolldownPluginUserConfig>>(\n createUnpluginFactory<RolldownPluginContext>(\"rolldown\", (api, plugin) => {\n return {\n ...plugin,\n rolldown: {\n async options(options: InputOptions) {\n const merged = defu(await api.context.getEnvironment(), this);\n\n return defu(\n resolveOptions(merged),\n options,\n api.callHook(\n \"rolldown:options\",\n { environment: merged },\n options\n ) ?? {}\n );\n }\n }\n };\n })\n);\n\nexport { unplugin as \"module.exports\" };\n\nexport default unplugin;\n"],"mappings":";;;;;;;;AAsBA,SAAgBA,uBAAqB,SAAgC;AACnE,QAAO,oBAAoB,eAAe,QAAQ,CAAC,CAAC,EAAE,CAAC;;;;;;;;ACmBzD,MAAa,UAGX,UAAiC,EAAE,KACd;AACrB,QAAO;EACL,MAAM;EACN,SAAS;AACP,UAAO;IACL,QAAQ,EACN,QAAQ,CAAC,OAAO,MAAM,EACvB;IACD,UAAU,EACR,GAAG,SACJ;IACF;;EAEH,MAAM,QAAQ;GACZ,MAAM,SAAS,MAAMC,SACnB,KACE,EACE,SAAS,CAACC,uBAAqB,KAAK,CAAC,EACtC,EACD,eAAe,KAAK,CACrB,CACF;AAED,SAAM,QAAQ,IACZ,QAAQ,KAAK,OAAO,OAAO,OAAO,CAAC,IAAI,OAAM,WAC3C,OAAO,MAAM,EACX,QACD,CAAC,CACH,CACF;;EAEJ;;AAGH,kBAAe;;;;;;;;;;;;;;;;;;;AChCf,MAAa,WAAW,qBACtB,sBAA6C,aAAa,KAAK,aAAW;AACxE,QAAO;EACL,GAAGC;EACH,UAAU,EACR,MAAM,QAAQ,SAAuB;GACnC,MAAM,SAASC,OAAK,MAAM,IAAI,QAAQ,gBAAgB,EAAE,KAAK;AAE7D,UAAOA,OACL,eAAe,OAAO,EACtB,SACA,IAAI,SACF,oBACA,EAAE,aAAa,QAAQ,EACvB,QACD,IAAI,EAAE,CACR;KAEJ;EACF;EACD,CACH;AAID,uBAAe"}
|
package/dist/rolldown.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
require('./api-
|
|
2
|
+
require('./api-Dspa27jK.cjs');
|
|
3
3
|
require('./tsconfig-C8M8X6U0.cjs');
|
|
4
4
|
require('./plugin-utils-Ck3cx3w6.cjs');
|
|
5
5
|
require('./plugin-CZ_PJPpQ.cjs');
|
|
@@ -10,7 +10,7 @@ require('./utils-BbDma_5Y.cjs');
|
|
|
10
10
|
require('./virtual-B1MLgqnQ.cjs');
|
|
11
11
|
require('./resolve-options-vyFhhkLp.cjs');
|
|
12
12
|
require('./resolve-options-lxQ2pm0W.cjs');
|
|
13
|
-
const require_rolldown = require('./rolldown-
|
|
13
|
+
const require_rolldown = require('./rolldown-CJwfgimU.cjs');
|
|
14
14
|
|
|
15
15
|
exports.default = require_rolldown.rolldown_default;
|
|
16
16
|
exports["module.exports"] = require_rolldown.unplugin;
|
package/dist/rolldown.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Et as PluginContext, N as UserConfig, er as Plugin, j as ResolvedConfig } from "./config-CK756s0L.mjs";
|
|
2
2
|
import "./config-CiPXgwzt.mjs";
|
|
3
3
|
import "./index-C7W0kmm7.mjs";
|
|
4
|
-
import "./index-
|
|
4
|
+
import "./index-2JXW-b2-.mjs";
|
|
5
5
|
import * as rolldown0 from "rolldown";
|
|
6
6
|
import { RolldownOptions } from "rolldown";
|
|
7
7
|
|