@powerlines/plugin-esbuild 0.13.247 → 0.13.248
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/helpers/index.cjs +3 -2
- package/dist/helpers/index.d.cts +3 -1
- package/dist/helpers/index.d.mts +3 -1
- package/dist/helpers/index.mjs +2 -1
- package/dist/helpers/unplugin.cjs +2 -10
- package/dist/helpers/unplugin.d.cts +2 -6
- package/dist/helpers/unplugin.d.mts +2 -6
- package/dist/helpers/unplugin.mjs +1 -8
- package/dist/helpers-B15z10jN.mjs +1 -0
- package/dist/helpers-LF26RHol.cjs +0 -0
- package/dist/index-9iG2qHLe.d.mts +1 -0
- package/dist/index-D4ELpJXS.d.cts +1 -0
- package/dist/index-D6CnpA_r.d.cts +1 -0
- package/dist/index-DL0uimUT.d.mts +1 -0
- package/dist/index.cjs +35 -6
- package/dist/index.d.cts +6 -5
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +6 -5
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +6 -3
- package/dist/index.mjs.map +1 -0
- package/dist/plugin-BcyncDdZ.d.mts +14 -0
- package/dist/plugin-BcyncDdZ.d.mts.map +1 -0
- package/dist/plugin-C03DmS9M.d.cts +14 -0
- package/dist/plugin-C03DmS9M.d.cts.map +1 -0
- package/dist/plugin-ifZVa20V.mjs +1 -0
- package/dist/plugin-pBKbb5K9.cjs +0 -0
- package/dist/types/index.cjs +2 -0
- package/dist/types/index.d.cts +2 -1
- package/dist/types/index.d.mts +2 -1
- package/dist/types/index.mjs +3 -0
- package/dist/types/plugin.cjs +1 -0
- package/dist/types/plugin.d.cts +1 -12
- package/dist/types/plugin.d.mts +1 -12
- package/dist/types/plugin.mjs +2 -0
- package/dist/types-U3zd8PTP.mjs +1 -0
- package/dist/types-o3zWarRp.cjs +0 -0
- package/dist/unplugin-B92r-u-y.mjs +11 -0
- package/dist/unplugin-B92r-u-y.mjs.map +1 -0
- package/dist/unplugin-BwGHb0xr.d.mts +8 -0
- package/dist/unplugin-BwGHb0xr.d.mts.map +1 -0
- package/dist/unplugin-CVyo74sg.d.cts +8 -0
- package/dist/unplugin-CVyo74sg.d.cts.map +1 -0
- package/dist/unplugin-KKD098zu.cjs +16 -0
- package/package.json +4 -4
- package/dist/_virtual/rolldown_runtime.cjs +0 -29
package/dist/helpers/index.cjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_unplugin = require('../unplugin-KKD098zu.cjs');
|
|
2
|
+
require('../helpers-LF26RHol.cjs');
|
|
2
3
|
|
|
3
|
-
exports.createESBuildPlugin =
|
|
4
|
+
exports.createESBuildPlugin = require_unplugin.createESBuildPlugin;
|
package/dist/helpers/index.d.cts
CHANGED
package/dist/helpers/index.d.mts
CHANGED
package/dist/helpers/index.mjs
CHANGED
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
const
|
|
2
|
-
let powerlines_lib_unplugin = require("powerlines/lib/unplugin");
|
|
3
|
-
let unplugin = require("unplugin");
|
|
1
|
+
const require_unplugin = require('../unplugin-KKD098zu.cjs');
|
|
4
2
|
|
|
5
|
-
|
|
6
|
-
function createESBuildPlugin(context) {
|
|
7
|
-
return (0, unplugin.createEsbuildPlugin)((0, powerlines_lib_unplugin.createUnplugin)(context))({});
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
//#endregion
|
|
11
|
-
exports.createESBuildPlugin = createESBuildPlugin;
|
|
3
|
+
exports.createESBuildPlugin = require_unplugin.createESBuildPlugin;
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
//#region src/helpers/unplugin.d.ts
|
|
5
|
-
declare function createESBuildPlugin(context: ESBuildPluginContext): esbuild0.Plugin;
|
|
6
|
-
//#endregion
|
|
1
|
+
import "../plugin-C03DmS9M.cjs";
|
|
2
|
+
import { t as createESBuildPlugin } from "../unplugin-CVyo74sg.cjs";
|
|
7
3
|
export { createESBuildPlugin };
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
//#region src/helpers/unplugin.d.ts
|
|
5
|
-
declare function createESBuildPlugin(context: ESBuildPluginContext): esbuild0.Plugin;
|
|
6
|
-
//#endregion
|
|
1
|
+
import "../plugin-BcyncDdZ.mjs";
|
|
2
|
+
import { t as createESBuildPlugin } from "../unplugin-BwGHb0xr.mjs";
|
|
7
3
|
export { createESBuildPlugin };
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { createEsbuildPlugin } from "unplugin";
|
|
1
|
+
import { t as createESBuildPlugin } from "../unplugin-B92r-u-y.mjs";
|
|
3
2
|
|
|
4
|
-
//#region src/helpers/unplugin.ts
|
|
5
|
-
function createESBuildPlugin(context) {
|
|
6
|
-
return createEsbuildPlugin(createUnplugin(context))({});
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
//#endregion
|
|
10
3
|
export { createESBuildPlugin };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
package/dist/index.cjs
CHANGED
|
@@ -1,9 +1,37 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
//#region rolldown:runtime
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
12
|
+
key = keys[i];
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
14
|
+
__defProp(to, key, {
|
|
15
|
+
get: ((k) => from[k]).bind(null, key),
|
|
16
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
22
|
+
};
|
|
23
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
24
|
+
value: mod,
|
|
25
|
+
enumerable: true
|
|
26
|
+
}) : target, mod));
|
|
27
|
+
|
|
28
|
+
//#endregion
|
|
29
|
+
const require_unplugin = require('./unplugin-KKD098zu.cjs');
|
|
30
|
+
require('./helpers-LF26RHol.cjs');
|
|
31
|
+
require('./plugin-pBKbb5K9.cjs');
|
|
32
|
+
require('./types-o3zWarRp.cjs');
|
|
5
33
|
let defu = require("defu");
|
|
6
|
-
defu =
|
|
34
|
+
defu = __toESM(defu);
|
|
7
35
|
let esbuild = require("esbuild");
|
|
8
36
|
let powerlines_lib_build_esbuild = require("powerlines/lib/build/esbuild");
|
|
9
37
|
|
|
@@ -27,7 +55,7 @@ const plugin = (options = {}) => {
|
|
|
27
55
|
async build() {
|
|
28
56
|
await (0, esbuild.build)((0, defu.default)({
|
|
29
57
|
entryPoints: (0, powerlines_lib_build_esbuild.resolveESBuildEntry)(this, this.entry),
|
|
30
|
-
plugins: [
|
|
58
|
+
plugins: [require_unplugin.createESBuildPlugin(this)]
|
|
31
59
|
}, (0, powerlines_lib_build_esbuild.extractESBuildConfig)(this)));
|
|
32
60
|
}
|
|
33
61
|
};
|
|
@@ -35,6 +63,7 @@ const plugin = (options = {}) => {
|
|
|
35
63
|
var src_default = plugin;
|
|
36
64
|
|
|
37
65
|
//#endregion
|
|
38
|
-
exports.
|
|
66
|
+
exports.__toESM = __toESM;
|
|
67
|
+
exports.createESBuildPlugin = require_unplugin.createESBuildPlugin;
|
|
39
68
|
exports.default = src_default;
|
|
40
69
|
exports.plugin = plugin;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { createESBuildPlugin } from "./
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
1
|
+
import { a as __ΩESBuildPluginOptions, i as __ΩESBuildPluginContext, n as ESBuildPluginOptions, o as __ΩESBuildPluginResolvedConfig, r as ESBuildPluginResolvedConfig, t as ESBuildPluginContext } from "./plugin-C03DmS9M.cjs";
|
|
2
|
+
import { t as createESBuildPlugin } from "./unplugin-CVyo74sg.cjs";
|
|
3
|
+
import "./index-D6CnpA_r.cjs";
|
|
4
|
+
import "./index-D4ELpJXS.cjs";
|
|
5
5
|
import { Plugin } from "powerlines/types/plugin";
|
|
6
6
|
|
|
7
7
|
//#region src/index.d.ts
|
|
@@ -10,4 +10,5 @@ import { Plugin } from "powerlines/types/plugin";
|
|
|
10
10
|
*/
|
|
11
11
|
declare const plugin: <TContext extends ESBuildPluginContext = ESBuildPluginContext>(options?: ESBuildPluginOptions) => Plugin<TContext>;
|
|
12
12
|
//#endregion
|
|
13
|
-
export { ESBuildPluginContext, ESBuildPluginOptions, ESBuildPluginResolvedConfig, __ΩESBuildPluginContext, __ΩESBuildPluginOptions, __ΩESBuildPluginResolvedConfig, createESBuildPlugin, plugin as default, plugin };
|
|
13
|
+
export { ESBuildPluginContext, ESBuildPluginOptions, ESBuildPluginResolvedConfig, __ΩESBuildPluginContext, __ΩESBuildPluginOptions, __ΩESBuildPluginResolvedConfig, createESBuildPlugin, plugin as default, plugin };
|
|
14
|
+
//# sourceMappingURL=index.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;AAoCa,cAAA,MA+BZ,EAAA,CAAA,iBA9BkB,oBA8BlB,GA9ByC,oBA8BzC,CAAA,CAAA,OAAA,CAAA,EA5BU,oBA4BV,EAAA,GA3BE,MA2BF,CA3BS,QA2BT,CAAA"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { createESBuildPlugin } from "./
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
1
|
+
import { a as __ΩESBuildPluginOptions, i as __ΩESBuildPluginContext, n as ESBuildPluginOptions, o as __ΩESBuildPluginResolvedConfig, r as ESBuildPluginResolvedConfig, t as ESBuildPluginContext } from "./plugin-BcyncDdZ.mjs";
|
|
2
|
+
import { t as createESBuildPlugin } from "./unplugin-BwGHb0xr.mjs";
|
|
3
|
+
import "./index-DL0uimUT.mjs";
|
|
4
|
+
import "./index-9iG2qHLe.mjs";
|
|
5
5
|
import { Plugin } from "powerlines/types/plugin";
|
|
6
6
|
|
|
7
7
|
//#region src/index.d.ts
|
|
@@ -10,4 +10,5 @@ import { Plugin } from "powerlines/types/plugin";
|
|
|
10
10
|
*/
|
|
11
11
|
declare const plugin: <TContext extends ESBuildPluginContext = ESBuildPluginContext>(options?: ESBuildPluginOptions) => Plugin<TContext>;
|
|
12
12
|
//#endregion
|
|
13
|
-
export { ESBuildPluginContext, ESBuildPluginOptions, ESBuildPluginResolvedConfig, __ΩESBuildPluginContext, __ΩESBuildPluginOptions, __ΩESBuildPluginResolvedConfig, createESBuildPlugin, plugin as default, plugin };
|
|
13
|
+
export { ESBuildPluginContext, ESBuildPluginOptions, ESBuildPluginResolvedConfig, __ΩESBuildPluginContext, __ΩESBuildPluginOptions, __ΩESBuildPluginResolvedConfig, createESBuildPlugin, plugin as default, plugin };
|
|
14
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;AAoCa,cAAA,MA+BZ,EAAA,CAAA,iBA9BkB,oBA8BlB,GA9ByC,oBA8BzC,CAAA,CAAA,OAAA,CAAA,EA5BU,oBA4BV,EAAA,GA3BE,MA2BF,CA3BS,QA2BT,CAAA"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { createESBuildPlugin } from "./
|
|
2
|
-
import "./helpers
|
|
1
|
+
import { t as createESBuildPlugin } from "./unplugin-B92r-u-y.mjs";
|
|
2
|
+
import "./helpers-B15z10jN.mjs";
|
|
3
|
+
import "./plugin-ifZVa20V.mjs";
|
|
4
|
+
import "./types-U3zd8PTP.mjs";
|
|
3
5
|
import defu from "defu";
|
|
4
6
|
import { build } from "esbuild";
|
|
5
7
|
import { DEFAULT_ESBUILD_CONFIG, extractESBuildConfig, resolveESBuildEntry } from "powerlines/lib/build/esbuild";
|
|
@@ -32,4 +34,5 @@ const plugin = (options = {}) => {
|
|
|
32
34
|
var src_default = plugin;
|
|
33
35
|
|
|
34
36
|
//#endregion
|
|
35
|
-
export { createESBuildPlugin, src_default as default, plugin };
|
|
37
|
+
export { createESBuildPlugin, src_default as default, plugin };
|
|
38
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport defu from \"defu\";\nimport { build } from \"esbuild\";\nimport {\n DEFAULT_ESBUILD_CONFIG,\n extractESBuildConfig,\n resolveESBuildEntry\n} from \"powerlines/lib/build/esbuild\";\nimport { ESBuildUserConfig } from \"powerlines/types/config\";\nimport { Plugin } from \"powerlines/types/plugin\";\nimport { createESBuildPlugin } from \"./helpers/unplugin\";\nimport { ESBuildPluginContext, ESBuildPluginOptions } from \"./types/plugin\";\n\nexport * from \"./helpers\";\nexport * from \"./types\";\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<ESBuildUserConfig>;\n },\n async build() {\n await build(\n defu(\n {\n entryPoints: resolveESBuildEntry(this, this.entry),\n plugins: [createESBuildPlugin(this)]\n },\n extractESBuildConfig(this)\n )\n );\n }\n };\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;AAoCA,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,oBAAoB,MAAM,KAAK,MAAM;IAClD,SAAS,CAAC,oBAAoB,KAAK,CAAC;IACrC,EACD,qBAAqB,KAAK,CAC3B,CACF;;EAEJ;;AAGH,kBAAe"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ESBuildBuildConfig } from "powerlines/types/build";
|
|
2
|
+
import { PluginContext } from "powerlines/types/context";
|
|
3
|
+
import { ESBuildResolvedConfig } from "powerlines/types/resolved";
|
|
4
|
+
|
|
5
|
+
//#region src/types/plugin.d.ts
|
|
6
|
+
type ESBuildPluginOptions = Partial<ESBuildBuildConfig>;
|
|
7
|
+
type ESBuildPluginResolvedConfig = ESBuildResolvedConfig;
|
|
8
|
+
type ESBuildPluginContext<TResolvedConfig extends ESBuildPluginResolvedConfig = ESBuildPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
9
|
+
declare type __ΩESBuildPluginOptions = any[];
|
|
10
|
+
declare type __ΩESBuildPluginResolvedConfig = any[];
|
|
11
|
+
declare type __ΩESBuildPluginContext = any[];
|
|
12
|
+
//#endregion
|
|
13
|
+
export { __ΩESBuildPluginOptions as a, __ΩESBuildPluginContext as i, ESBuildPluginOptions as n, __ΩESBuildPluginResolvedConfig as o, ESBuildPluginResolvedConfig as r, ESBuildPluginContext as t };
|
|
14
|
+
//# sourceMappingURL=plugin-BcyncDdZ.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-BcyncDdZ.d.mts","names":[],"sources":["../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;KAsBY,oBAAA,GAAuB,QAAQ;KAE/B,2BAAA,GAA8B;AAF9B,KAIA,oBAJoB,CAAA,wBAM5B,2BANsC,GAMR,2BANQ,CAAA,GAOtC,aAPsC,CAOxB,eAPwB,CAAA;AAE9B,uCAA8B,GAAA,EAAA;AAE9B,8CAAoB,GAAA,EAAA;AAE5B,uCAAA,GAAA,EAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ESBuildBuildConfig } from "powerlines/types/build";
|
|
2
|
+
import { PluginContext } from "powerlines/types/context";
|
|
3
|
+
import { ESBuildResolvedConfig } from "powerlines/types/resolved";
|
|
4
|
+
|
|
5
|
+
//#region src/types/plugin.d.ts
|
|
6
|
+
type ESBuildPluginOptions = Partial<ESBuildBuildConfig>;
|
|
7
|
+
type ESBuildPluginResolvedConfig = ESBuildResolvedConfig;
|
|
8
|
+
type ESBuildPluginContext<TResolvedConfig extends ESBuildPluginResolvedConfig = ESBuildPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
9
|
+
declare type __ΩESBuildPluginOptions = any[];
|
|
10
|
+
declare type __ΩESBuildPluginResolvedConfig = any[];
|
|
11
|
+
declare type __ΩESBuildPluginContext = any[];
|
|
12
|
+
//#endregion
|
|
13
|
+
export { __ΩESBuildPluginOptions as a, __ΩESBuildPluginContext as i, ESBuildPluginOptions as n, __ΩESBuildPluginResolvedConfig as o, ESBuildPluginResolvedConfig as r, ESBuildPluginContext as t };
|
|
14
|
+
//# sourceMappingURL=plugin-C03DmS9M.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-C03DmS9M.d.cts","names":[],"sources":["../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;KAsBY,oBAAA,GAAuB,QAAQ;KAE/B,2BAAA,GAA8B;AAF9B,KAIA,oBAJoB,CAAA,wBAM5B,2BANsC,GAMR,2BANQ,CAAA,GAOtC,aAPsC,CAOxB,eAPwB,CAAA;AAE9B,uCAA8B,GAAA,EAAA;AAE9B,8CAAoB,GAAA,EAAA;AAE5B,uCAAA,GAAA,EAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
File without changes
|
package/dist/types/index.cjs
CHANGED
package/dist/types/index.d.cts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as __ΩESBuildPluginOptions, i as __ΩESBuildPluginContext, n as ESBuildPluginOptions, o as __ΩESBuildPluginResolvedConfig, r as ESBuildPluginResolvedConfig, t as ESBuildPluginContext } from "../plugin-C03DmS9M.cjs";
|
|
2
|
+
import "../index-D4ELpJXS.cjs";
|
|
2
3
|
export { ESBuildPluginContext, ESBuildPluginOptions, ESBuildPluginResolvedConfig, __ΩESBuildPluginContext, __ΩESBuildPluginOptions, __ΩESBuildPluginResolvedConfig };
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as __ΩESBuildPluginOptions, i as __ΩESBuildPluginContext, n as ESBuildPluginOptions, o as __ΩESBuildPluginResolvedConfig, r as ESBuildPluginResolvedConfig, t as ESBuildPluginContext } from "../plugin-BcyncDdZ.mjs";
|
|
2
|
+
import "../index-9iG2qHLe.mjs";
|
|
2
3
|
export { ESBuildPluginContext, ESBuildPluginOptions, ESBuildPluginResolvedConfig, __ΩESBuildPluginContext, __ΩESBuildPluginOptions, __ΩESBuildPluginResolvedConfig };
|
package/dist/types/index.mjs
CHANGED
package/dist/types/plugin.cjs
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require('../plugin-pBKbb5K9.cjs');
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,13 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { PluginContext } from "powerlines/types/context";
|
|
3
|
-
import { ESBuildResolvedConfig } from "powerlines/types/resolved";
|
|
4
|
-
|
|
5
|
-
//#region src/types/plugin.d.ts
|
|
6
|
-
type ESBuildPluginOptions = Partial<ESBuildBuildConfig>;
|
|
7
|
-
type ESBuildPluginResolvedConfig = ESBuildResolvedConfig;
|
|
8
|
-
type ESBuildPluginContext<TResolvedConfig extends ESBuildPluginResolvedConfig = ESBuildPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
9
|
-
declare type __ΩESBuildPluginOptions = any[];
|
|
10
|
-
declare type __ΩESBuildPluginResolvedConfig = any[];
|
|
11
|
-
declare type __ΩESBuildPluginContext = any[];
|
|
12
|
-
//#endregion
|
|
1
|
+
import { a as __ΩESBuildPluginOptions, i as __ΩESBuildPluginContext, n as ESBuildPluginOptions, o as __ΩESBuildPluginResolvedConfig, r as ESBuildPluginResolvedConfig, t as ESBuildPluginContext } from "../plugin-C03DmS9M.cjs";
|
|
13
2
|
export { ESBuildPluginContext, ESBuildPluginOptions, ESBuildPluginResolvedConfig, __ΩESBuildPluginContext, __ΩESBuildPluginOptions, __ΩESBuildPluginResolvedConfig };
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,13 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { PluginContext } from "powerlines/types/context";
|
|
3
|
-
import { ESBuildResolvedConfig } from "powerlines/types/resolved";
|
|
4
|
-
|
|
5
|
-
//#region src/types/plugin.d.ts
|
|
6
|
-
type ESBuildPluginOptions = Partial<ESBuildBuildConfig>;
|
|
7
|
-
type ESBuildPluginResolvedConfig = ESBuildResolvedConfig;
|
|
8
|
-
type ESBuildPluginContext<TResolvedConfig extends ESBuildPluginResolvedConfig = ESBuildPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
9
|
-
declare type __ΩESBuildPluginOptions = any[];
|
|
10
|
-
declare type __ΩESBuildPluginResolvedConfig = any[];
|
|
11
|
-
declare type __ΩESBuildPluginContext = any[];
|
|
12
|
-
//#endregion
|
|
1
|
+
import { a as __ΩESBuildPluginOptions, i as __ΩESBuildPluginContext, n as ESBuildPluginOptions, o as __ΩESBuildPluginResolvedConfig, r as ESBuildPluginResolvedConfig, t as ESBuildPluginContext } from "../plugin-BcyncDdZ.mjs";
|
|
13
2
|
export { ESBuildPluginContext, ESBuildPluginOptions, ESBuildPluginResolvedConfig, __ΩESBuildPluginContext, __ΩESBuildPluginOptions, __ΩESBuildPluginResolvedConfig };
|
package/dist/types/plugin.mjs
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
File without changes
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createUnplugin } from "powerlines/lib/unplugin";
|
|
2
|
+
import { createEsbuildPlugin } from "unplugin";
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/unplugin.ts
|
|
5
|
+
function createESBuildPlugin(context) {
|
|
6
|
+
return createEsbuildPlugin(createUnplugin(context))({});
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
export { createESBuildPlugin as t };
|
|
11
|
+
//# sourceMappingURL=unplugin-B92r-u-y.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unplugin-B92r-u-y.mjs","names":[],"sources":["../src/helpers/unplugin.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/lib/unplugin\";\nimport { createEsbuildPlugin } from \"unplugin\";\nimport { ESBuildPluginContext } from \"../types/plugin\";\n\nexport function createESBuildPlugin(context: ESBuildPluginContext) {\n return createEsbuildPlugin(createUnplugin(context))({});\n}\n"],"mappings":";;;;AAsBA,SAAgB,oBAAoB,SAA+B;AACjE,QAAO,oBAAoB,eAAe,QAAQ,CAAC,CAAC,EAAE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { t as ESBuildPluginContext } from "./plugin-BcyncDdZ.mjs";
|
|
2
|
+
import * as esbuild0 from "esbuild";
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/unplugin.d.ts
|
|
5
|
+
declare function createESBuildPlugin(context: ESBuildPluginContext): esbuild0.Plugin;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { createESBuildPlugin as t };
|
|
8
|
+
//# sourceMappingURL=unplugin-BwGHb0xr.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unplugin-BwGHb0xr.d.mts","names":[],"sources":["../src/helpers/unplugin.ts"],"sourcesContent":[],"mappings":";;;;iBAsBgB,mBAAA,UAA6B,uBAAoB,QAAA,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { t as ESBuildPluginContext } from "./plugin-C03DmS9M.cjs";
|
|
2
|
+
import * as esbuild0 from "esbuild";
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/unplugin.d.ts
|
|
5
|
+
declare function createESBuildPlugin(context: ESBuildPluginContext): esbuild0.Plugin;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { createESBuildPlugin as t };
|
|
8
|
+
//# sourceMappingURL=unplugin-CVyo74sg.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unplugin-CVyo74sg.d.cts","names":[],"sources":["../src/helpers/unplugin.ts"],"sourcesContent":[],"mappings":";;;;iBAsBgB,mBAAA,UAA6B,uBAAoB,QAAA,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const require_index = require('./index.cjs');
|
|
2
|
+
let powerlines_lib_unplugin = require("powerlines/lib/unplugin");
|
|
3
|
+
let unplugin = require("unplugin");
|
|
4
|
+
|
|
5
|
+
//#region src/helpers/unplugin.ts
|
|
6
|
+
function createESBuildPlugin(context) {
|
|
7
|
+
return (0, unplugin.createEsbuildPlugin)((0, powerlines_lib_unplugin.createUnplugin)(context))({});
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
Object.defineProperty(exports, 'createESBuildPlugin', {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () {
|
|
14
|
+
return createESBuildPlugin;
|
|
15
|
+
}
|
|
16
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-esbuild",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.248",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin to build projects using esbuild.",
|
|
6
6
|
"repository": {
|
|
@@ -124,14 +124,14 @@
|
|
|
124
124
|
"defu": "^6.1.4",
|
|
125
125
|
"esbuild": "^0.25.12",
|
|
126
126
|
"jiti": "^2.6.1",
|
|
127
|
-
"powerlines": "^0.38.
|
|
127
|
+
"powerlines": "^0.38.6",
|
|
128
128
|
"unplugin": "3.0.0-beta.3"
|
|
129
129
|
},
|
|
130
130
|
"devDependencies": {
|
|
131
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
131
|
+
"@powerlines/plugin-plugin": "^0.12.190",
|
|
132
132
|
"@types/node": "^24.10.9"
|
|
133
133
|
},
|
|
134
134
|
"publishConfig": { "access": "public" },
|
|
135
135
|
"types": "./dist/index.d.cts",
|
|
136
|
-
"gitHead": "
|
|
136
|
+
"gitHead": "f90d675c44d4323d447a46c8a4c833420543cc0a"
|
|
137
137
|
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
//#region rolldown:runtime
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
-
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
11
|
-
key = keys[i];
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
13
|
-
__defProp(to, key, {
|
|
14
|
-
get: ((k) => from[k]).bind(null, key),
|
|
15
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
return to;
|
|
21
|
-
};
|
|
22
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
23
|
-
value: mod,
|
|
24
|
-
enumerable: true
|
|
25
|
-
}) : target, mod));
|
|
26
|
-
|
|
27
|
-
//#endregion
|
|
28
|
-
|
|
29
|
-
exports.__toESM = __toESM;
|