@powerlines/plugin-rolldown 0.7.248 → 0.7.249
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-9AlLEd2g.d.mts +14 -0
- package/dist/plugin-9AlLEd2g.d.mts.map +1 -0
- package/dist/plugin-CJrLUgZR.d.cts +14 -0
- package/dist/plugin-CJrLUgZR.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-C4pyoG-d.d.cts +8 -0
- package/dist/unplugin-C4pyoG-d.d.cts.map +1 -0
- package/dist/unplugin-C9Yo5uX-.cjs +16 -0
- package/dist/unplugin-DHizzR2y.mjs +11 -0
- package/dist/unplugin-DHizzR2y.mjs.map +1 -0
- package/dist/unplugin-DxTCmBYy.d.mts +8 -0
- package/dist/unplugin-DxTCmBYy.d.mts.map +1 -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-C9Yo5uX-.cjs');
|
|
2
|
+
require('../helpers-LF26RHol.cjs');
|
|
2
3
|
|
|
3
|
-
exports.createRolldownPlugin =
|
|
4
|
+
exports.createRolldownPlugin = require_unplugin.createRolldownPlugin;
|
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-C9Yo5uX-.cjs');
|
|
4
2
|
|
|
5
|
-
|
|
6
|
-
function createRolldownPlugin(context) {
|
|
7
|
-
return (0, unplugin.createEsbuildPlugin)((0, powerlines_lib_unplugin.createUnplugin)(context))({});
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
//#endregion
|
|
11
|
-
exports.createRolldownPlugin = createRolldownPlugin;
|
|
3
|
+
exports.createRolldownPlugin = require_unplugin.createRolldownPlugin;
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
//#region src/helpers/unplugin.d.ts
|
|
5
|
-
declare function createRolldownPlugin(context: RolldownPluginContext): esbuild0.Plugin;
|
|
6
|
-
//#endregion
|
|
1
|
+
import "../plugin-CJrLUgZR.cjs";
|
|
2
|
+
import { t as createRolldownPlugin } from "../unplugin-C4pyoG-d.cjs";
|
|
7
3
|
export { createRolldownPlugin };
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
//#region src/helpers/unplugin.d.ts
|
|
5
|
-
declare function createRolldownPlugin(context: RolldownPluginContext): esbuild0.Plugin;
|
|
6
|
-
//#endregion
|
|
1
|
+
import "../plugin-9AlLEd2g.mjs";
|
|
2
|
+
import { t as createRolldownPlugin } from "../unplugin-DxTCmBYy.mjs";
|
|
7
3
|
export { createRolldownPlugin };
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { createEsbuildPlugin } from "unplugin";
|
|
1
|
+
import { t as createRolldownPlugin } from "../unplugin-DHizzR2y.mjs";
|
|
3
2
|
|
|
4
|
-
//#region src/helpers/unplugin.ts
|
|
5
|
-
function createRolldownPlugin(context) {
|
|
6
|
-
return createEsbuildPlugin(createUnplugin(context))({});
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
//#endregion
|
|
10
3
|
export { createRolldownPlugin };
|
|
@@ -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,10 +1,38 @@
|
|
|
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-C9Yo5uX-.cjs');
|
|
30
|
+
require('./helpers-LF26RHol.cjs');
|
|
31
|
+
require('./plugin-pBKbb5K9.cjs');
|
|
32
|
+
require('./types-o3zWarRp.cjs');
|
|
5
33
|
let __stryke_convert_to_array = require("@stryke/convert/to-array");
|
|
6
34
|
let defu = require("defu");
|
|
7
|
-
defu =
|
|
35
|
+
defu = __toESM(defu);
|
|
8
36
|
let powerlines_lib_build_rolldown = require("powerlines/lib/build/rolldown");
|
|
9
37
|
let rolldown = require("rolldown");
|
|
10
38
|
|
|
@@ -25,7 +53,7 @@ const plugin = (options = {}) => {
|
|
|
25
53
|
};
|
|
26
54
|
},
|
|
27
55
|
async build() {
|
|
28
|
-
const result = await (0, rolldown.rolldown)((0, defu.default)({ plugins: [
|
|
56
|
+
const result = await (0, rolldown.rolldown)((0, defu.default)({ plugins: [require_unplugin.createRolldownPlugin(this)] }, (0, powerlines_lib_build_rolldown.extractRolldownConfig)(this)));
|
|
29
57
|
await Promise.all((0, __stryke_convert_to_array.toArray)(this.config.output.format).map(async (format) => result.write({ format })));
|
|
30
58
|
}
|
|
31
59
|
};
|
|
@@ -33,6 +61,7 @@ const plugin = (options = {}) => {
|
|
|
33
61
|
var src_default = plugin;
|
|
34
62
|
|
|
35
63
|
//#endregion
|
|
36
|
-
exports.
|
|
64
|
+
exports.__toESM = __toESM;
|
|
65
|
+
exports.createRolldownPlugin = require_unplugin.createRolldownPlugin;
|
|
37
66
|
exports.default = src_default;
|
|
38
67
|
exports.plugin = plugin;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { createRolldownPlugin } from "./
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
1
|
+
import { a as __ΩRolldownPluginOptions, i as __ΩRolldownPluginContext, n as RolldownPluginOptions, o as __ΩRolldownPluginResolvedConfig, r as RolldownPluginResolvedConfig, t as RolldownPluginContext } from "./plugin-CJrLUgZR.cjs";
|
|
2
|
+
import { t as createRolldownPlugin } from "./unplugin-C4pyoG-d.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 RolldownPluginContext = RolldownPluginContext>(options?: RolldownPluginOptions) => Plugin<TContext>;
|
|
12
12
|
//#endregion
|
|
13
|
-
export { RolldownPluginContext, RolldownPluginOptions, RolldownPluginResolvedConfig, __ΩRolldownPluginContext, __ΩRolldownPluginOptions, __ΩRolldownPluginResolvedConfig, createRolldownPlugin, plugin as default, plugin };
|
|
13
|
+
export { RolldownPluginContext, RolldownPluginOptions, RolldownPluginResolvedConfig, __ΩRolldownPluginContext, __ΩRolldownPluginOptions, __ΩRolldownPluginResolvedConfig, createRolldownPlugin, 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":";;;;;;;;;;AAiCa,cAAA,MAqCZ,EAAA,CAAA,iBApCkB,qBAoClB,GApC0C,qBAoC1C,CAAA,CAAA,OAAA,CAAA,EAlCU,qBAkCV,EAAA,GAjCE,MAiCF,CAjCS,QAiCT,CAAA"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { createRolldownPlugin } from "./
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
1
|
+
import { a as __ΩRolldownPluginOptions, i as __ΩRolldownPluginContext, n as RolldownPluginOptions, o as __ΩRolldownPluginResolvedConfig, r as RolldownPluginResolvedConfig, t as RolldownPluginContext } from "./plugin-9AlLEd2g.mjs";
|
|
2
|
+
import { t as createRolldownPlugin } from "./unplugin-DxTCmBYy.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 RolldownPluginContext = RolldownPluginContext>(options?: RolldownPluginOptions) => Plugin<TContext>;
|
|
12
12
|
//#endregion
|
|
13
|
-
export { RolldownPluginContext, RolldownPluginOptions, RolldownPluginResolvedConfig, __ΩRolldownPluginContext, __ΩRolldownPluginOptions, __ΩRolldownPluginResolvedConfig, createRolldownPlugin, plugin as default, plugin };
|
|
13
|
+
export { RolldownPluginContext, RolldownPluginOptions, RolldownPluginResolvedConfig, __ΩRolldownPluginContext, __ΩRolldownPluginOptions, __ΩRolldownPluginResolvedConfig, createRolldownPlugin, 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":";;;;;;;;;;AAiCa,cAAA,MAqCZ,EAAA,CAAA,iBApCkB,qBAoClB,GApC0C,qBAoC1C,CAAA,CAAA,OAAA,CAAA,EAlCU,qBAkCV,EAAA,GAjCE,MAiCF,CAjCS,QAiCT,CAAA"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { createRolldownPlugin } from "./
|
|
2
|
-
import "./helpers
|
|
1
|
+
import { t as createRolldownPlugin } from "./unplugin-DHizzR2y.mjs";
|
|
2
|
+
import "./helpers-B15z10jN.mjs";
|
|
3
|
+
import "./plugin-ifZVa20V.mjs";
|
|
4
|
+
import "./types-U3zd8PTP.mjs";
|
|
3
5
|
import { toArray } from "@stryke/convert/to-array";
|
|
4
6
|
import defu from "defu";
|
|
5
7
|
import { extractRolldownConfig } from "powerlines/lib/build/rolldown";
|
|
@@ -30,4 +32,5 @@ const plugin = (options = {}) => {
|
|
|
30
32
|
var src_default = plugin;
|
|
31
33
|
|
|
32
34
|
//#endregion
|
|
33
|
-
export { createRolldownPlugin, src_default as default, plugin };
|
|
35
|
+
export { createRolldownPlugin, src_default as default, plugin };
|
|
36
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["build"],"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 { toArray } from \"@stryke/convert/to-array\";\nimport defu from \"defu\";\nimport { extractRolldownConfig } from \"powerlines/lib/build/rolldown\";\nimport { RolldownUserConfig } from \"powerlines/types/config\";\nimport { Plugin } from \"powerlines/types/plugin\";\nimport { rolldown as build } from \"rolldown\";\nimport { createRolldownPlugin } from \"./helpers/unplugin\";\nimport { RolldownPluginContext, RolldownPluginOptions } 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 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 build: {\n ...options,\n variant: \"rolldown\"\n }\n } as Partial<RolldownUserConfig>;\n },\n async build() {\n const result = await build(\n defu(\n {\n plugins: [createRolldownPlugin(this)]\n },\n extractRolldownConfig(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"],"mappings":";;;;;;;;;;;;;AAiCA,MAAa,UAGX,UAAiC,EAAE,KACd;AACrB,QAAO;EACL,MAAM;EACN,SAAS;AACP,UAAO;IACL,QAAQ,EACN,QAAQ,CAAC,OAAO,MAAM,EACvB;IACD,OAAO;KACL,GAAG;KACH,SAAS;KACV;IACF;;EAEH,MAAM,QAAQ;GACZ,MAAM,SAAS,MAAMA,SACnB,KACE,EACE,SAAS,CAAC,qBAAqB,KAAK,CAAC,EACtC,EACD,sBAAsB,KAAK,CAC5B,CACF;AAED,SAAM,QAAQ,IACZ,QAAQ,KAAK,OAAO,OAAO,OAAO,CAAC,IAAI,OAAM,WAC3C,OAAO,MAAM,EACX,QACD,CAAC,CACH,CACF;;EAEJ;;AAGH,kBAAe"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { RolldownBuildConfig } from "powerlines/types/build";
|
|
2
|
+
import { PluginContext } from "powerlines/types/context";
|
|
3
|
+
import { RolldownResolvedConfig } from "powerlines/types/resolved";
|
|
4
|
+
|
|
5
|
+
//#region src/types/plugin.d.ts
|
|
6
|
+
type RolldownPluginOptions = Partial<RolldownBuildConfig>;
|
|
7
|
+
type RolldownPluginResolvedConfig = RolldownResolvedConfig;
|
|
8
|
+
type RolldownPluginContext<TResolvedConfig extends RolldownPluginResolvedConfig = RolldownPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
9
|
+
declare type __ΩRolldownPluginOptions = any[];
|
|
10
|
+
declare type __ΩRolldownPluginResolvedConfig = any[];
|
|
11
|
+
declare type __ΩRolldownPluginContext = any[];
|
|
12
|
+
//#endregion
|
|
13
|
+
export { __ΩRolldownPluginOptions as a, __ΩRolldownPluginContext as i, RolldownPluginOptions as n, __ΩRolldownPluginResolvedConfig as o, RolldownPluginResolvedConfig as r, RolldownPluginContext as t };
|
|
14
|
+
//# sourceMappingURL=plugin-9AlLEd2g.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-9AlLEd2g.d.mts","names":[],"sources":["../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;KAsBY,qBAAA,GAAwB,QAAQ;KAEhC,4BAAA,GAA+B;AAF/B,KAIA,qBAJqB,CAAA,wBAM7B,4BANuC,GAMR,4BANQ,CAAA,GAOvC,aAPuC,CAOzB,eAPyB,CAAA;AAE/B,wCAA+B,GAAA,EAAA;AAE/B,+CAAqB,GAAA,EAAA;AAE7B,wCAAA,GAAA,EAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { RolldownBuildConfig } from "powerlines/types/build";
|
|
2
|
+
import { PluginContext } from "powerlines/types/context";
|
|
3
|
+
import { RolldownResolvedConfig } from "powerlines/types/resolved";
|
|
4
|
+
|
|
5
|
+
//#region src/types/plugin.d.ts
|
|
6
|
+
type RolldownPluginOptions = Partial<RolldownBuildConfig>;
|
|
7
|
+
type RolldownPluginResolvedConfig = RolldownResolvedConfig;
|
|
8
|
+
type RolldownPluginContext<TResolvedConfig extends RolldownPluginResolvedConfig = RolldownPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
9
|
+
declare type __ΩRolldownPluginOptions = any[];
|
|
10
|
+
declare type __ΩRolldownPluginResolvedConfig = any[];
|
|
11
|
+
declare type __ΩRolldownPluginContext = any[];
|
|
12
|
+
//#endregion
|
|
13
|
+
export { __ΩRolldownPluginOptions as a, __ΩRolldownPluginContext as i, RolldownPluginOptions as n, __ΩRolldownPluginResolvedConfig as o, RolldownPluginResolvedConfig as r, RolldownPluginContext as t };
|
|
14
|
+
//# sourceMappingURL=plugin-CJrLUgZR.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-CJrLUgZR.d.cts","names":[],"sources":["../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;KAsBY,qBAAA,GAAwB,QAAQ;KAEhC,4BAAA,GAA+B;AAF/B,KAIA,qBAJqB,CAAA,wBAM7B,4BANuC,GAMR,4BANQ,CAAA,GAOvC,aAPuC,CAOzB,eAPyB,CAAA;AAE/B,wCAA+B,GAAA,EAAA;AAE/B,+CAAqB,GAAA,EAAA;AAE7B,wCAAA,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 __ΩRolldownPluginOptions, i as __ΩRolldownPluginContext, n as RolldownPluginOptions, o as __ΩRolldownPluginResolvedConfig, r as RolldownPluginResolvedConfig, t as RolldownPluginContext } from "../plugin-CJrLUgZR.cjs";
|
|
2
|
+
import "../index-D4ELpJXS.cjs";
|
|
2
3
|
export { RolldownPluginContext, RolldownPluginOptions, RolldownPluginResolvedConfig, __ΩRolldownPluginContext, __ΩRolldownPluginOptions, __ΩRolldownPluginResolvedConfig };
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as __ΩRolldownPluginOptions, i as __ΩRolldownPluginContext, n as RolldownPluginOptions, o as __ΩRolldownPluginResolvedConfig, r as RolldownPluginResolvedConfig, t as RolldownPluginContext } from "../plugin-9AlLEd2g.mjs";
|
|
2
|
+
import "../index-9iG2qHLe.mjs";
|
|
2
3
|
export { RolldownPluginContext, RolldownPluginOptions, RolldownPluginResolvedConfig, __ΩRolldownPluginContext, __ΩRolldownPluginOptions, __ΩRolldownPluginResolvedConfig };
|
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 { RolldownResolvedConfig } from "powerlines/types/resolved";
|
|
4
|
-
|
|
5
|
-
//#region src/types/plugin.d.ts
|
|
6
|
-
type RolldownPluginOptions = Partial<RolldownBuildConfig>;
|
|
7
|
-
type RolldownPluginResolvedConfig = RolldownResolvedConfig;
|
|
8
|
-
type RolldownPluginContext<TResolvedConfig extends RolldownPluginResolvedConfig = RolldownPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
9
|
-
declare type __ΩRolldownPluginOptions = any[];
|
|
10
|
-
declare type __ΩRolldownPluginResolvedConfig = any[];
|
|
11
|
-
declare type __ΩRolldownPluginContext = any[];
|
|
12
|
-
//#endregion
|
|
1
|
+
import { a as __ΩRolldownPluginOptions, i as __ΩRolldownPluginContext, n as RolldownPluginOptions, o as __ΩRolldownPluginResolvedConfig, r as RolldownPluginResolvedConfig, t as RolldownPluginContext } from "../plugin-CJrLUgZR.cjs";
|
|
13
2
|
export { RolldownPluginContext, RolldownPluginOptions, RolldownPluginResolvedConfig, __ΩRolldownPluginContext, __ΩRolldownPluginOptions, __ΩRolldownPluginResolvedConfig };
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,13 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { PluginContext } from "powerlines/types/context";
|
|
3
|
-
import { RolldownResolvedConfig } from "powerlines/types/resolved";
|
|
4
|
-
|
|
5
|
-
//#region src/types/plugin.d.ts
|
|
6
|
-
type RolldownPluginOptions = Partial<RolldownBuildConfig>;
|
|
7
|
-
type RolldownPluginResolvedConfig = RolldownResolvedConfig;
|
|
8
|
-
type RolldownPluginContext<TResolvedConfig extends RolldownPluginResolvedConfig = RolldownPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
9
|
-
declare type __ΩRolldownPluginOptions = any[];
|
|
10
|
-
declare type __ΩRolldownPluginResolvedConfig = any[];
|
|
11
|
-
declare type __ΩRolldownPluginContext = any[];
|
|
12
|
-
//#endregion
|
|
1
|
+
import { a as __ΩRolldownPluginOptions, i as __ΩRolldownPluginContext, n as RolldownPluginOptions, o as __ΩRolldownPluginResolvedConfig, r as RolldownPluginResolvedConfig, t as RolldownPluginContext } from "../plugin-9AlLEd2g.mjs";
|
|
13
2
|
export { RolldownPluginContext, RolldownPluginOptions, RolldownPluginResolvedConfig, __ΩRolldownPluginContext, __ΩRolldownPluginOptions, __ΩRolldownPluginResolvedConfig };
|
package/dist/types/plugin.mjs
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
File without changes
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { t as RolldownPluginContext } from "./plugin-CJrLUgZR.cjs";
|
|
2
|
+
import * as esbuild0 from "esbuild";
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/unplugin.d.ts
|
|
5
|
+
declare function createRolldownPlugin(context: RolldownPluginContext): esbuild0.Plugin;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { createRolldownPlugin as t };
|
|
8
|
+
//# sourceMappingURL=unplugin-C4pyoG-d.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unplugin-C4pyoG-d.d.cts","names":[],"sources":["../src/helpers/unplugin.ts"],"sourcesContent":[],"mappings":";;;;iBAsBgB,oBAAA,UAA8B,wBAAqB,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 createRolldownPlugin(context) {
|
|
7
|
+
return (0, unplugin.createEsbuildPlugin)((0, powerlines_lib_unplugin.createUnplugin)(context))({});
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
Object.defineProperty(exports, 'createRolldownPlugin', {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () {
|
|
14
|
+
return createRolldownPlugin;
|
|
15
|
+
}
|
|
16
|
+
});
|
|
@@ -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 createRolldownPlugin(context) {
|
|
6
|
+
return createEsbuildPlugin(createUnplugin(context))({});
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
export { createRolldownPlugin as t };
|
|
11
|
+
//# sourceMappingURL=unplugin-DHizzR2y.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unplugin-DHizzR2y.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 { RolldownPluginContext } from \"../types/plugin\";\n\nexport function createRolldownPlugin(context: RolldownPluginContext) {\n return createEsbuildPlugin(createUnplugin(context))({});\n}\n"],"mappings":";;;;AAsBA,SAAgB,qBAAqB,SAAgC;AACnE,QAAO,oBAAoB,eAAe,QAAQ,CAAC,CAAC,EAAE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { t as RolldownPluginContext } from "./plugin-9AlLEd2g.mjs";
|
|
2
|
+
import * as esbuild0 from "esbuild";
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/unplugin.d.ts
|
|
5
|
+
declare function createRolldownPlugin(context: RolldownPluginContext): esbuild0.Plugin;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { createRolldownPlugin as t };
|
|
8
|
+
//# sourceMappingURL=unplugin-DxTCmBYy.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unplugin-DxTCmBYy.d.mts","names":[],"sources":["../src/helpers/unplugin.ts"],"sourcesContent":[],"mappings":";;;;iBAsBgB,oBAAA,UAA8B,wBAAqB,QAAA,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-rolldown",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.249",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
|
|
6
6
|
"repository": {
|
|
@@ -124,15 +124,15 @@
|
|
|
124
124
|
"@stryke/types": "^0.10.36",
|
|
125
125
|
"defu": "^6.1.4",
|
|
126
126
|
"jiti": "^2.6.1",
|
|
127
|
-
"powerlines": "^0.38.
|
|
127
|
+
"powerlines": "^0.38.6",
|
|
128
128
|
"rolldown": "1.0.0-beta.53",
|
|
129
129
|
"unplugin": "3.0.0-beta.3"
|
|
130
130
|
},
|
|
131
131
|
"devDependencies": {
|
|
132
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
132
|
+
"@powerlines/plugin-plugin": "^0.12.190",
|
|
133
133
|
"@types/node": "^24.10.9"
|
|
134
134
|
},
|
|
135
135
|
"publishConfig": { "access": "public" },
|
|
136
136
|
"types": "./dist/index.d.cts",
|
|
137
|
-
"gitHead": "
|
|
137
|
+
"gitHead": "f90d675c44d4323d447a46c8a4c833420543cc0a"
|
|
138
138
|
}
|
|
@@ -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;
|