@powerlines/unplugin 0.0.80 → 0.0.82
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/_virtual/_rolldown/runtime.cjs +45 -0
- package/dist/{chunk-BUUfjzRC.mjs → _virtual/_rolldown/runtime.mjs} +1 -1
- package/dist/esbuild.cjs +3 -2
- package/dist/esbuild.d.cts +2 -2
- package/dist/esbuild.d.cts.map +1 -1
- package/dist/esbuild.d.mts +1 -1
- package/dist/esbuild.d.mts.map +1 -1
- package/dist/farm.cjs +1 -1
- package/dist/farm.d.cts +2 -2
- package/dist/farm.d.cts.map +1 -1
- package/dist/farm.d.mts +1 -1
- package/dist/farm.d.mts.map +1 -1
- package/dist/index.cjs +5 -4
- package/dist/index.d.cts +1 -1
- package/dist/index.mjs +2 -2
- package/dist/nuxt.cjs +42 -3
- package/dist/nuxt.mjs +43 -3
- package/dist/nuxt.mjs.map +1 -0
- package/dist/package.cjs +18 -0
- package/dist/package.mjs +7 -0
- package/dist/package.mjs.map +1 -0
- package/dist/rolldown.cjs +6 -5
- package/dist/rolldown.d.cts +2 -2
- package/dist/rolldown.d.cts.map +1 -1
- package/dist/rolldown.d.mts +1 -1
- package/dist/rolldown.d.mts.map +1 -1
- package/dist/rollup.cjs +7 -6
- package/dist/rollup.d.cts +2 -2
- package/dist/rollup.d.cts.map +1 -1
- package/dist/rollup.d.mts +1 -1
- package/dist/rollup.d.mts.map +1 -1
- package/dist/rspack.cjs +3 -2
- package/dist/rspack.d.cts +2 -2
- package/dist/rspack.d.cts.map +1 -1
- package/dist/rspack.d.mts +1 -1
- package/dist/rspack.d.mts.map +1 -1
- package/dist/tsdown.cjs +2 -2
- package/dist/tsup.cjs +2 -2
- package/dist/types.d.cts +11 -2
- package/dist/types.d.cts.map +1 -0
- package/dist/unloader.cjs +1 -1
- package/dist/unloader.d.cts +2 -2
- package/dist/unloader.d.cts.map +1 -1
- package/dist/unloader.d.mts +1 -1
- package/dist/unloader.d.mts.map +1 -1
- package/dist/unplugin.cjs +232 -2
- package/dist/unplugin.d.cts +1 -1
- package/dist/unplugin.d.cts.map +1 -1
- package/dist/unplugin.mjs +1 -1
- package/dist/vite.cjs +3 -2
- package/dist/vite.d.cts +2 -2
- package/dist/vite.d.cts.map +1 -1
- package/dist/vite.d.mts +1 -1
- package/dist/vite.d.mts.map +1 -1
- package/dist/webpack.cjs +3 -2
- package/dist/webpack.d.cts +2 -2
- package/dist/webpack.d.cts.map +1 -1
- package/dist/webpack.d.mts +1 -1
- package/dist/webpack.d.mts.map +1 -1
- package/package.json +5 -5
- package/dist/nuxt-DnPulowA.mjs +0 -48
- package/dist/nuxt-DnPulowA.mjs.map +0 -1
- package/dist/nuxt-p97pkRJZ.cjs +0 -52
- package/dist/types-CEaXoKbk.d.cts +0 -13
- package/dist/types-CEaXoKbk.d.cts.map +0 -1
- package/dist/unplugin-WjPT9ECw.cjs +0 -296
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
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 __exportAll = (all, no_symbols) => {
|
|
9
|
+
let target = {};
|
|
10
|
+
for (var name in all) {
|
|
11
|
+
__defProp(target, name, {
|
|
12
|
+
get: all[name],
|
|
13
|
+
enumerable: true
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
if (!no_symbols) {
|
|
17
|
+
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
18
|
+
}
|
|
19
|
+
return target;
|
|
20
|
+
};
|
|
21
|
+
var __copyProps = (to, from, except, desc) => {
|
|
22
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
23
|
+
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
24
|
+
key = keys[i];
|
|
25
|
+
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
26
|
+
__defProp(to, key, {
|
|
27
|
+
get: ((k) => from[k]).bind(null, key),
|
|
28
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return to;
|
|
34
|
+
};
|
|
35
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
36
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
37
|
+
value: mod,
|
|
38
|
+
enumerable: true
|
|
39
|
+
}) : target, mod));
|
|
40
|
+
|
|
41
|
+
//#endregion
|
|
42
|
+
|
|
43
|
+
exports.__exportAll = __exportAll;
|
|
44
|
+
exports.__reExport = __reExport;
|
|
45
|
+
exports.__toESM = __toESM;
|
|
@@ -33,4 +33,4 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
33
33
|
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
34
34
|
|
|
35
35
|
//#endregion
|
|
36
|
-
export {
|
|
36
|
+
export { __exportAll, __reExport };
|
package/dist/esbuild.cjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
-
const
|
|
2
|
+
const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
|
|
3
|
+
const require_unplugin = require('./unplugin.cjs');
|
|
3
4
|
let _stryke_path_join_paths = require("@stryke/path/join-paths");
|
|
4
5
|
let defu = require("defu");
|
|
5
|
-
defu =
|
|
6
|
+
defu = require_runtime.__toESM(defu, 1);
|
|
6
7
|
let unplugin = require("unplugin");
|
|
7
8
|
let _powerlines_core_lib_entry = require("@powerlines/core/lib/entry");
|
|
8
9
|
let _stryke_path_replace = require("@stryke/path/replace");
|
package/dist/esbuild.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UnpluginExecutionOptions, UnpluginFactory } from "./types.cjs";
|
|
2
2
|
import { UnpluginFactoryDecorator, UnpluginFactoryOptions } from "./unplugin.cjs";
|
|
3
3
|
import { ExecutionContext, ResolvedEntryFileReference, UnresolvedContext } from "@powerlines/core";
|
|
4
4
|
import { DeepPartial } from "@stryke/types/base";
|
|
@@ -44,7 +44,7 @@ declare function resolveOptions<TContext extends UnresolvedContext>(context: TCo
|
|
|
44
44
|
* @param decorate - A function to decorate the plugin options with additional properties or hooks. This can be used to add custom behavior to the plugin instance, such as additional hooks or configuration options. The function receives the generated plugin options and should return an object containing any additional properties or hooks to be merged into the final plugin options.
|
|
45
45
|
* @returns A function that generates an ESBuild plugin instance when called. The generated plugin will invoke the Powerlines API hooks during the build process, allowing you to integrate Powerlines into your ESBuild build.
|
|
46
46
|
*/
|
|
47
|
-
declare function createEsbuildFactory<TContext extends ExecutionContext>(options?: Omit<UnpluginFactoryOptions, "variant">, decorate?: UnpluginFactoryDecorator<TContext>): UnpluginFactory<ExecutionContext<import("@powerlines/core").ResolvedConfig
|
|
47
|
+
declare function createEsbuildFactory<TContext extends ExecutionContext>(options?: Omit<UnpluginFactoryOptions, "variant">, decorate?: UnpluginFactoryDecorator<TContext>): UnpluginFactory<ExecutionContext<import("@powerlines/core").ResolvedConfig, any>>;
|
|
48
48
|
/**
|
|
49
49
|
* An ESBuild plugin that will invoke the Powerlines API hooks during the build process.
|
|
50
50
|
*
|
package/dist/esbuild.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"esbuild.d.cts","names":[],"sources":["../src/esbuild.ts"],"mappings":";;;;;;;cAyCa,eAAA,EAAiB,OAAO,CAAC,YAAA;;;AAAtC;;;;AAAkD;iBAqBlC,YAAA,kBAA8B,iBAAA,EAC5C,OAAA,EAAS,QAAA,EACT,WAAA,GAAa,0BAAA,gBACZ,YAAA;;;;;;;;iBAuBa,cAAA,kBAAgC,iBAAA,EAC9C,OAAA,EAAS,QAAA,EACT,QAAA,GAAU,WAAA,CAAY,YAAA,IACrB,YAAA;;;;;;;;;AA1BY;AAuBf;;;;;;;;;;;;;iBAgHgB,oBAAA,kBAAsC,gBAAA,EACpD,OAAA,GAAS,IAAA,CAAK,sBAAA,cACd,QAAA,GAAU,wBAAA,CAAyB,QAAA,IAA8B,eAAA,CAAA,gBAAA,4BAAA,cAAA
|
|
1
|
+
{"version":3,"file":"esbuild.d.cts","names":[],"sources":["../src/esbuild.ts"],"mappings":";;;;;;;cAyCa,eAAA,EAAiB,OAAO,CAAC,YAAA;;;AAAtC;;;;AAAkD;iBAqBlC,YAAA,kBAA8B,iBAAA,EAC5C,OAAA,EAAS,QAAA,EACT,WAAA,GAAa,0BAAA,gBACZ,YAAA;;;;;;;;iBAuBa,cAAA,kBAAgC,iBAAA,EAC9C,OAAA,EAAS,QAAA,EACT,QAAA,GAAU,WAAA,CAAY,YAAA,IACrB,YAAA;;;;;;;;;AA1BY;AAuBf;;;;;;;;;;;;;iBAgHgB,oBAAA,kBAAsC,gBAAA,EACpD,OAAA,GAAS,IAAA,CAAK,sBAAA,cACd,QAAA,GAAU,wBAAA,CAAyB,QAAA,IAA8B,eAAA,CAAA,gBAAA,4BAAA,cAAA;;;;;;AA/GpD;AA6Gf;;;;;;;;;;cAqDM,MAAA,GAAM,OAAA,GAA8C,wBAA9C,mCAAA,MAAA"}
|
package/dist/esbuild.d.mts
CHANGED
|
@@ -44,7 +44,7 @@ declare function resolveOptions<TContext extends UnresolvedContext>(context: TCo
|
|
|
44
44
|
* @param decorate - A function to decorate the plugin options with additional properties or hooks. This can be used to add custom behavior to the plugin instance, such as additional hooks or configuration options. The function receives the generated plugin options and should return an object containing any additional properties or hooks to be merged into the final plugin options.
|
|
45
45
|
* @returns A function that generates an ESBuild plugin instance when called. The generated plugin will invoke the Powerlines API hooks during the build process, allowing you to integrate Powerlines into your ESBuild build.
|
|
46
46
|
*/
|
|
47
|
-
declare function createEsbuildFactory<TContext extends ExecutionContext>(options?: Omit<UnpluginFactoryOptions, "variant">, decorate?: UnpluginFactoryDecorator<TContext>): UnpluginFactory<ExecutionContext<import("@powerlines/core").ResolvedConfig
|
|
47
|
+
declare function createEsbuildFactory<TContext extends ExecutionContext>(options?: Omit<UnpluginFactoryOptions, "variant">, decorate?: UnpluginFactoryDecorator<TContext>): UnpluginFactory<ExecutionContext<import("@powerlines/core").ResolvedConfig, any>>;
|
|
48
48
|
/**
|
|
49
49
|
* An ESBuild plugin that will invoke the Powerlines API hooks during the build process.
|
|
50
50
|
*
|
package/dist/esbuild.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"esbuild.d.mts","names":[],"sources":["../src/esbuild.ts"],"mappings":";;;;;;;cAyCa,eAAA,EAAiB,OAAO,CAAC,YAAA;;;AAAtC;;;;AAAkD;iBAqBlC,YAAA,kBAA8B,iBAAA,EAC5C,OAAA,EAAS,QAAA,EACT,WAAA,GAAa,0BAAA,gBACZ,YAAA;;;;;;;;iBAuBa,cAAA,kBAAgC,iBAAA,EAC9C,OAAA,EAAS,QAAA,EACT,QAAA,GAAU,WAAA,CAAY,YAAA,IACrB,YAAA;;;;;;;;;AA1BY;AAuBf;;;;;;;;;;;;;iBAgHgB,oBAAA,kBAAsC,gBAAA,EACpD,OAAA,GAAS,IAAA,CAAK,sBAAA,cACd,QAAA,GAAU,wBAAA,CAAyB,QAAA,IAA8B,eAAA,CAAA,gBAAA,4BAAA,cAAA
|
|
1
|
+
{"version":3,"file":"esbuild.d.mts","names":[],"sources":["../src/esbuild.ts"],"mappings":";;;;;;;cAyCa,eAAA,EAAiB,OAAO,CAAC,YAAA;;;AAAtC;;;;AAAkD;iBAqBlC,YAAA,kBAA8B,iBAAA,EAC5C,OAAA,EAAS,QAAA,EACT,WAAA,GAAa,0BAAA,gBACZ,YAAA;;;;;;;;iBAuBa,cAAA,kBAAgC,iBAAA,EAC9C,OAAA,EAAS,QAAA,EACT,QAAA,GAAU,WAAA,CAAY,YAAA,IACrB,YAAA;;;;;;;;;AA1BY;AAuBf;;;;;;;;;;;;;iBAgHgB,oBAAA,kBAAsC,gBAAA,EACpD,OAAA,GAAS,IAAA,CAAK,sBAAA,cACd,QAAA,GAAU,wBAAA,CAAyB,QAAA,IAA8B,eAAA,CAAA,gBAAA,4BAAA,cAAA;;;;;;AA/GpD;AA6Gf;;;;;;;;;;cAqDM,MAAA,GAAM,OAAA,GAA8C,wBAA9C,mCAAA,MAAA"}
|
package/dist/farm.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
-
const require_unplugin = require('./unplugin
|
|
2
|
+
const require_unplugin = require('./unplugin.cjs');
|
|
3
3
|
let unplugin = require("unplugin");
|
|
4
4
|
|
|
5
5
|
//#region src/farm.ts
|
package/dist/farm.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UnpluginExecutionOptions, UnpluginFactory } from "./types.cjs";
|
|
2
2
|
import { UnpluginFactoryDecorator, UnpluginFactoryOptions } from "./unplugin.cjs";
|
|
3
3
|
import { ExecutionContext } from "@powerlines/core";
|
|
4
4
|
|
|
@@ -25,7 +25,7 @@ import { ExecutionContext } from "@powerlines/core";
|
|
|
25
25
|
* @param decorate - A function to decorate the plugin options with additional properties or hooks. This can be used to add custom behavior to the plugin instance, such as additional hooks or configuration options. The function receives the generated plugin options and should return an object containing any additional properties or hooks to be merged into the final plugin options.
|
|
26
26
|
* @returns A function that generates a Farm plugin instance when called. The generated plugin will invoke the Powerlines API hooks during the build process, allowing you to integrate Powerlines into your Farm build.
|
|
27
27
|
*/
|
|
28
|
-
declare function createFarmFactory<TContext extends ExecutionContext>(options?: Omit<UnpluginFactoryOptions, "variant">, decorate?: UnpluginFactoryDecorator<TContext>): UnpluginFactory<ExecutionContext<import("@powerlines/core").ResolvedConfig
|
|
28
|
+
declare function createFarmFactory<TContext extends ExecutionContext>(options?: Omit<UnpluginFactoryOptions, "variant">, decorate?: UnpluginFactoryDecorator<TContext>): UnpluginFactory<ExecutionContext<import("@powerlines/core").ResolvedConfig, any>>;
|
|
29
29
|
/**
|
|
30
30
|
* A Farm plugin that will invoke the Powerlines API hooks during the build process.
|
|
31
31
|
*
|
package/dist/farm.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"farm.d.cts","names":[],"sources":["../src/farm.ts"],"mappings":";;;;;;;;AAgDA;;;;;;;;;;;;;;;;;;;iBAAgB,iBAAA,kBAAmC,gBAAA,EACjD,OAAA,GAAS,IAAA,CAAK,sBAAA,cACd,QAAA,GAAU,wBAAA,CAAyB,QAAA,IAA8B,eAAA,CAAA,gBAAA,4BAAA,cAAA
|
|
1
|
+
{"version":3,"file":"farm.d.cts","names":[],"sources":["../src/farm.ts"],"mappings":";;;;;;;;AAgDA;;;;;;;;;;;;;;;;;;;iBAAgB,iBAAA,kBAAmC,gBAAA,EACjD,OAAA,GAAS,IAAA,CAAK,sBAAA,cACd,QAAA,GAAU,wBAAA,CAAyB,QAAA,IAA8B,eAAA,CAAA,gBAAA,4BAAA,cAAA;;;;;AAAA;AAKlE;;;;;;;;AAmBiD;;;;cAA5C,IAAA,GAAI,OAAA,GAAwC,wBAAxC,wCAAA,QAAA"}
|
package/dist/farm.d.mts
CHANGED
|
@@ -25,7 +25,7 @@ import { ExecutionContext } from "@powerlines/core";
|
|
|
25
25
|
* @param decorate - A function to decorate the plugin options with additional properties or hooks. This can be used to add custom behavior to the plugin instance, such as additional hooks or configuration options. The function receives the generated plugin options and should return an object containing any additional properties or hooks to be merged into the final plugin options.
|
|
26
26
|
* @returns A function that generates a Farm plugin instance when called. The generated plugin will invoke the Powerlines API hooks during the build process, allowing you to integrate Powerlines into your Farm build.
|
|
27
27
|
*/
|
|
28
|
-
declare function createFarmFactory<TContext extends ExecutionContext>(options?: Omit<UnpluginFactoryOptions, "variant">, decorate?: UnpluginFactoryDecorator<TContext>): UnpluginFactory<ExecutionContext<import("@powerlines/core").ResolvedConfig
|
|
28
|
+
declare function createFarmFactory<TContext extends ExecutionContext>(options?: Omit<UnpluginFactoryOptions, "variant">, decorate?: UnpluginFactoryDecorator<TContext>): UnpluginFactory<ExecutionContext<import("@powerlines/core").ResolvedConfig, any>>;
|
|
29
29
|
/**
|
|
30
30
|
* A Farm plugin that will invoke the Powerlines API hooks during the build process.
|
|
31
31
|
*
|
package/dist/farm.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"farm.d.mts","names":[],"sources":["../src/farm.ts"],"mappings":";;;;;;;;AAgDA;;;;;;;;;;;;;;;;;;;iBAAgB,iBAAA,kBAAmC,gBAAA,EACjD,OAAA,GAAS,IAAA,CAAK,sBAAA,cACd,QAAA,GAAU,wBAAA,CAAyB,QAAA,IAA8B,eAAA,CAAA,gBAAA,4BAAA,cAAA
|
|
1
|
+
{"version":3,"file":"farm.d.mts","names":[],"sources":["../src/farm.ts"],"mappings":";;;;;;;;AAgDA;;;;;;;;;;;;;;;;;;;iBAAgB,iBAAA,kBAAmC,gBAAA,EACjD,OAAA,GAAS,IAAA,CAAK,sBAAA,cACd,QAAA,GAAU,wBAAA,CAAyB,QAAA,IAA8B,eAAA,CAAA,gBAAA,4BAAA,cAAA;;;;;AAAA;AAKlE;;;;;;;;AAmBiD;;;;cAA5C,IAAA,GAAI,OAAA,GAAwC,wBAAxC,wCAAA,QAAA"}
|
package/dist/index.cjs
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
-
const
|
|
2
|
+
const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
|
|
3
|
+
const require_unplugin = require('./unplugin.cjs');
|
|
3
4
|
const require_esbuild = require('./esbuild.cjs');
|
|
4
5
|
const require_rolldown = require('./rolldown.cjs');
|
|
5
6
|
const require_vite = require('./vite.cjs');
|
|
6
7
|
const require_astro = require('./astro.cjs');
|
|
7
8
|
const require_farm = require('./farm.cjs');
|
|
8
9
|
const require_next = require('./next.cjs');
|
|
9
|
-
const require_nuxt = require('./nuxt
|
|
10
|
+
const require_nuxt = require('./nuxt.cjs');
|
|
10
11
|
const require_rollup = require('./rollup.cjs');
|
|
11
12
|
const require_rspack = require('./rspack.cjs');
|
|
12
13
|
const require_tsdown = require('./tsdown.cjs');
|
|
@@ -14,7 +15,7 @@ const require_tsup = require('./tsup.cjs');
|
|
|
14
15
|
const require_unloader = require('./unloader.cjs');
|
|
15
16
|
|
|
16
17
|
//#region src/index.ts
|
|
17
|
-
var src_exports = /* @__PURE__ */
|
|
18
|
+
var src_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
18
19
|
createUnpluginFactory: () => require_unplugin.createUnpluginFactory,
|
|
19
20
|
default: () => plugins,
|
|
20
21
|
plugins: () => plugins
|
|
@@ -24,7 +25,7 @@ const plugins = {
|
|
|
24
25
|
esbuild: require_esbuild.default,
|
|
25
26
|
farm: require_farm.default,
|
|
26
27
|
next: require_next.default,
|
|
27
|
-
nuxt: require_nuxt
|
|
28
|
+
nuxt: require_nuxt,
|
|
28
29
|
rolldown: require_rolldown.default,
|
|
29
30
|
rollup: require_rollup.default,
|
|
30
31
|
rspack: require_rspack.default,
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as __reExport, i as __exportAll, n as UnpluginExecutionOptionsBase, r as UnpluginFactory, t as UnpluginExecutionOptions } from "./types-CEaXoKbk.cjs";
|
|
2
1
|
import withPlugin from "./astro.cjs";
|
|
2
|
+
import { UnpluginExecutionOptions, UnpluginExecutionOptionsBase, UnpluginFactory } from "./types.cjs";
|
|
3
3
|
import { UnpluginFactoryDecorator, UnpluginFactoryOptions, createUnpluginFactory } from "./unplugin.cjs";
|
|
4
4
|
import withPlugin$1 from "./next.cjs";
|
|
5
5
|
import plugin from "./tsdown.cjs";
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __exportAll, __reExport } from "./_virtual/_rolldown/runtime.mjs";
|
|
2
2
|
import { createUnpluginFactory } from "./unplugin.mjs";
|
|
3
3
|
import plugin from "./esbuild.mjs";
|
|
4
4
|
import plugin$1 from "./rolldown.mjs";
|
|
@@ -6,7 +6,7 @@ import plugin$2 from "./vite.mjs";
|
|
|
6
6
|
import withPlugin from "./astro.mjs";
|
|
7
7
|
import farm from "./farm.mjs";
|
|
8
8
|
import withPlugin$1 from "./next.mjs";
|
|
9
|
-
import
|
|
9
|
+
import plugin$3 from "./nuxt.mjs";
|
|
10
10
|
import plugin$4 from "./rollup.mjs";
|
|
11
11
|
import plugin$5 from "./rspack.mjs";
|
|
12
12
|
import plugin$6 from "./tsdown.mjs";
|
package/dist/nuxt.cjs
CHANGED
|
@@ -1,4 +1,43 @@
|
|
|
1
|
-
require('./vite.cjs');
|
|
2
|
-
const
|
|
1
|
+
const require_vite = require('./vite.cjs');
|
|
2
|
+
const require_webpack = require('./webpack.cjs');
|
|
3
|
+
const require_package = require('./package.cjs');
|
|
4
|
+
let _nuxt_kit = require("@nuxt/kit");
|
|
3
5
|
|
|
4
|
-
|
|
6
|
+
//#region src/nuxt.ts
|
|
7
|
+
/**
|
|
8
|
+
* A Nuxt plugin that will invoke the Powerlines API hooks during the build process.
|
|
9
|
+
*
|
|
10
|
+
* @see https://nuxt.com/docs/guide/directory-structure/modules
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* // nuxt.config.ts
|
|
15
|
+
* import { defineNuxtConfig } from "@nuxt/kit";
|
|
16
|
+
*
|
|
17
|
+
* export default defineNuxtConfig({
|
|
18
|
+
* modules: [
|
|
19
|
+
* [
|
|
20
|
+
* "@powerlines/unplugin/nuxt",
|
|
21
|
+
* { name: "example-app", ... }
|
|
22
|
+
* ],
|
|
23
|
+
* ],
|
|
24
|
+
* });
|
|
25
|
+
*
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
const plugin = (0, _nuxt_kit.defineNuxtModule)({
|
|
29
|
+
meta: {
|
|
30
|
+
name: require_package.name,
|
|
31
|
+
version: require_package.version,
|
|
32
|
+
configKey: "powerlines",
|
|
33
|
+
compatibility: { builder: { vite: "^8.0.0" } }
|
|
34
|
+
},
|
|
35
|
+
defaults: {},
|
|
36
|
+
setup(options) {
|
|
37
|
+
(0, _nuxt_kit.addVitePlugin)(() => require_vite.default(options));
|
|
38
|
+
(0, _nuxt_kit.addWebpackPlugin)(() => require_webpack.default(options));
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
//#endregion
|
|
43
|
+
module.exports = plugin;
|
package/dist/nuxt.mjs
CHANGED
|
@@ -1,4 +1,44 @@
|
|
|
1
|
-
import "./vite.mjs";
|
|
2
|
-
import
|
|
1
|
+
import plugin$1 from "./vite.mjs";
|
|
2
|
+
import plugin$2 from "./webpack.mjs";
|
|
3
|
+
import { name, version } from "./package.mjs";
|
|
4
|
+
import { addVitePlugin, addWebpackPlugin, defineNuxtModule } from "@nuxt/kit";
|
|
3
5
|
|
|
4
|
-
|
|
6
|
+
//#region src/nuxt.ts
|
|
7
|
+
/**
|
|
8
|
+
* A Nuxt plugin that will invoke the Powerlines API hooks during the build process.
|
|
9
|
+
*
|
|
10
|
+
* @see https://nuxt.com/docs/guide/directory-structure/modules
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* // nuxt.config.ts
|
|
15
|
+
* import { defineNuxtConfig } from "@nuxt/kit";
|
|
16
|
+
*
|
|
17
|
+
* export default defineNuxtConfig({
|
|
18
|
+
* modules: [
|
|
19
|
+
* [
|
|
20
|
+
* "@powerlines/unplugin/nuxt",
|
|
21
|
+
* { name: "example-app", ... }
|
|
22
|
+
* ],
|
|
23
|
+
* ],
|
|
24
|
+
* });
|
|
25
|
+
*
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
const plugin = defineNuxtModule({
|
|
29
|
+
meta: {
|
|
30
|
+
name,
|
|
31
|
+
version,
|
|
32
|
+
configKey: "powerlines",
|
|
33
|
+
compatibility: { builder: { vite: "^8.0.0" } }
|
|
34
|
+
},
|
|
35
|
+
defaults: {},
|
|
36
|
+
setup(options) {
|
|
37
|
+
addVitePlugin(() => plugin$1(options));
|
|
38
|
+
addWebpackPlugin(() => plugin$2(options));
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
//#endregion
|
|
43
|
+
export { plugin as default };
|
|
44
|
+
//# sourceMappingURL=nuxt.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nuxt.mjs","names":["vite","webpack"],"sources":["../src/nuxt.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 { addVitePlugin, addWebpackPlugin, defineNuxtModule } from \"@nuxt/kit\";\nimport type { UserConfig } from \"@powerlines/core\";\nimport { name, version } from \"../package.json\";\nimport vite from \"./vite\";\nimport webpack from \"./webpack\";\n\n/**\n * A Nuxt plugin that will invoke the Powerlines API hooks during the build process.\n *\n * @see https://nuxt.com/docs/guide/directory-structure/modules\n *\n * @example\n * ```ts\n * // nuxt.config.ts\n * import { defineNuxtConfig } from \"@nuxt/kit\";\n *\n * export default defineNuxtConfig({\n * modules: [\n * [\n * \"@powerlines/unplugin/nuxt\",\n * { name: \"example-app\", ... }\n * ],\n * ],\n * });\n *\n * ```\n */\nconst plugin = defineNuxtModule<UserConfig>({\n meta: {\n name,\n version,\n configKey: \"powerlines\",\n compatibility: {\n builder: {\n vite: \"^8.0.0\"\n }\n }\n },\n defaults: {},\n setup(options) {\n addVitePlugin(() => vite(options));\n addWebpackPlugin(() => webpack(options));\n }\n});\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AA6CA,MAAM,SAAS,iBAA6B;CAC1C,MAAM;EACJ;EACA;EACA,WAAW;EACX,eAAe,EACb,SAAS,EACP,MAAM,SACR,EACF;CACF;CACA,UAAU,CAAC;CACX,MAAM,SAAS;EACb,oBAAoBA,SAAK,OAAO,CAAC;EACjC,uBAAuBC,SAAQ,OAAO,CAAC;CACzC;AACF,CAAC"}
|
package/dist/package.cjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
//#region package.json
|
|
3
|
+
var name = "@powerlines/unplugin";
|
|
4
|
+
var version = "0.0.81";
|
|
5
|
+
|
|
6
|
+
//#endregion
|
|
7
|
+
Object.defineProperty(exports, 'name', {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () {
|
|
10
|
+
return name;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, 'version', {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () {
|
|
16
|
+
return version;
|
|
17
|
+
}
|
|
18
|
+
});
|
package/dist/package.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package.mjs","names":[],"sources":["../package.json"],"sourcesContent":[""],"mappings":""}
|
package/dist/rolldown.cjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
-
const
|
|
2
|
+
const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
|
|
3
|
+
const require_unplugin = require('./unplugin.cjs');
|
|
3
4
|
let _stryke_path_append = require("@stryke/path/append");
|
|
4
5
|
let _stryke_path_join_paths = require("@stryke/path/join-paths");
|
|
5
6
|
let defu = require("defu");
|
|
@@ -7,17 +8,17 @@ let unplugin = require("unplugin");
|
|
|
7
8
|
let _stryke_type_checks_is_string = require("@stryke/type-checks/is-string");
|
|
8
9
|
let _stryke_convert_to_array = require("@stryke/convert/to-array");
|
|
9
10
|
let _rollup_plugin_inject = require("@rollup/plugin-inject");
|
|
10
|
-
_rollup_plugin_inject =
|
|
11
|
+
_rollup_plugin_inject = require_runtime.__toESM(_rollup_plugin_inject, 1);
|
|
11
12
|
let _rollup_plugin_node_resolve = require("@rollup/plugin-node-resolve");
|
|
12
|
-
_rollup_plugin_node_resolve =
|
|
13
|
+
_rollup_plugin_node_resolve = require_runtime.__toESM(_rollup_plugin_node_resolve, 1);
|
|
13
14
|
let _rollup_plugin_replace = require("@rollup/plugin-replace");
|
|
14
|
-
_rollup_plugin_replace =
|
|
15
|
+
_rollup_plugin_replace = require_runtime.__toESM(_rollup_plugin_replace, 1);
|
|
15
16
|
let glob = require("glob");
|
|
16
17
|
let node_module = require("node:module");
|
|
17
18
|
let rolldown_plugin_dts = require("rolldown-plugin-dts");
|
|
18
19
|
let rolldown_experimental = require("rolldown/experimental");
|
|
19
20
|
let rollup_plugin_typescript2 = require("rollup-plugin-typescript2");
|
|
20
|
-
rollup_plugin_typescript2 =
|
|
21
|
+
rollup_plugin_typescript2 = require_runtime.__toESM(rollup_plugin_typescript2, 1);
|
|
21
22
|
|
|
22
23
|
//#region src/rolldown.ts
|
|
23
24
|
const DEFAULT_OPTIONS = {
|
package/dist/rolldown.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UnpluginExecutionOptions, UnpluginFactory } from "./types.cjs";
|
|
2
2
|
import { UnpluginFactoryDecorator, UnpluginFactoryOptions } from "./unplugin.cjs";
|
|
3
3
|
import { ExecutionContext, UnresolvedContext } from "@powerlines/core";
|
|
4
4
|
import { Plugin, RolldownOptions } from "rolldown";
|
|
@@ -41,7 +41,7 @@ declare function resolveOptions<TContext extends UnresolvedContext>(context: TCo
|
|
|
41
41
|
* @param decorate - A function to decorate the plugin options with additional properties or hooks. This can be used to add custom behavior to the plugin instance, such as additional hooks or configuration options. The function receives the generated plugin options and should return an object containing any additional properties or hooks to be merged into the final plugin options.
|
|
42
42
|
* @returns A function that generates a Rolldown plugin instance when called. The generated plugin will invoke the Powerlines API hooks during the build process, allowing you to integrate Powerlines into your Rolldown build.
|
|
43
43
|
*/
|
|
44
|
-
declare function createRolldownFactory<TContext extends ExecutionContext>(options?: Omit<UnpluginFactoryOptions, "variant">, decorate?: UnpluginFactoryDecorator<TContext>): UnpluginFactory<ExecutionContext<import("@powerlines/core").ResolvedConfig
|
|
44
|
+
declare function createRolldownFactory<TContext extends ExecutionContext>(options?: Omit<UnpluginFactoryOptions, "variant">, decorate?: UnpluginFactoryDecorator<TContext>): UnpluginFactory<ExecutionContext<import("@powerlines/core").ResolvedConfig, any>>;
|
|
45
45
|
/**
|
|
46
46
|
* A Rolldown plugin that will invoke the Powerlines API hooks during the build process.
|
|
47
47
|
*
|
package/dist/rolldown.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rolldown.d.cts","names":[],"sources":["../src/rolldown.ts"],"mappings":";;;;;;cA6Ca,eAAA;;;;;;;;;;;;;AAeb;iBAAgB,cAAA,kBAAgC,iBAAA,EAC9C,OAAA,EAAS,QAAA,GACR,eAAA;;;;;;;;;;;;;AAAe;AA4PlB;;;;;;;;;iBAAgB,qBAAA,kBAAuC,gBAAA,EACrD,OAAA,GAAS,IAAA,CAAK,sBAAA,cACd,QAAA,GAAU,wBAAA,CAAyB,QAAA,IAA8B,eAAA,CAAA,gBAAA,4BAAA,cAAA
|
|
1
|
+
{"version":3,"file":"rolldown.d.cts","names":[],"sources":["../src/rolldown.ts"],"mappings":";;;;;;cA6Ca,eAAA;;;;;;;;;;;;;AAeb;iBAAgB,cAAA,kBAAgC,iBAAA,EAC9C,OAAA,EAAS,QAAA,GACR,eAAA;;;;;;;;;;;;;AAAe;AA4PlB;;;;;;;;;iBAAgB,qBAAA,kBAAuC,gBAAA,EACrD,OAAA,GAAS,IAAA,CAAK,sBAAA,cACd,QAAA,GAAU,wBAAA,CAAyB,QAAA,IAA8B,eAAA,CAAA,gBAAA,4BAAA,cAAA;;;;;;;;;;;;;;;AAAA;cAuC7D,MAAA,GAAM,OAAA,GAAgD,wBAAA,iBAAhD,MAAA,QAAA,MAAA"}
|
package/dist/rolldown.d.mts
CHANGED
|
@@ -41,7 +41,7 @@ declare function resolveOptions<TContext extends UnresolvedContext>(context: TCo
|
|
|
41
41
|
* @param decorate - A function to decorate the plugin options with additional properties or hooks. This can be used to add custom behavior to the plugin instance, such as additional hooks or configuration options. The function receives the generated plugin options and should return an object containing any additional properties or hooks to be merged into the final plugin options.
|
|
42
42
|
* @returns A function that generates a Rolldown plugin instance when called. The generated plugin will invoke the Powerlines API hooks during the build process, allowing you to integrate Powerlines into your Rolldown build.
|
|
43
43
|
*/
|
|
44
|
-
declare function createRolldownFactory<TContext extends ExecutionContext>(options?: Omit<UnpluginFactoryOptions, "variant">, decorate?: UnpluginFactoryDecorator<TContext>): UnpluginFactory<ExecutionContext<import("@powerlines/core").ResolvedConfig
|
|
44
|
+
declare function createRolldownFactory<TContext extends ExecutionContext>(options?: Omit<UnpluginFactoryOptions, "variant">, decorate?: UnpluginFactoryDecorator<TContext>): UnpluginFactory<ExecutionContext<import("@powerlines/core").ResolvedConfig, any>>;
|
|
45
45
|
/**
|
|
46
46
|
* A Rolldown plugin that will invoke the Powerlines API hooks during the build process.
|
|
47
47
|
*
|
package/dist/rolldown.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rolldown.d.mts","names":[],"sources":["../src/rolldown.ts"],"mappings":";;;;;;cA6Ca,eAAA;;;;;;;;;;;;;AAeb;iBAAgB,cAAA,kBAAgC,iBAAA,EAC9C,OAAA,EAAS,QAAA,GACR,eAAA;;;;;;;;;;;;;AAAe;AA4PlB;;;;;;;;;iBAAgB,qBAAA,kBAAuC,gBAAA,EACrD,OAAA,GAAS,IAAA,CAAK,sBAAA,cACd,QAAA,GAAU,wBAAA,CAAyB,QAAA,IAA8B,eAAA,CAAA,gBAAA,4BAAA,cAAA
|
|
1
|
+
{"version":3,"file":"rolldown.d.mts","names":[],"sources":["../src/rolldown.ts"],"mappings":";;;;;;cA6Ca,eAAA;;;;;;;;;;;;;AAeb;iBAAgB,cAAA,kBAAgC,iBAAA,EAC9C,OAAA,EAAS,QAAA,GACR,eAAA;;;;;;;;;;;;;AAAe;AA4PlB;;;;;;;;;iBAAgB,qBAAA,kBAAuC,gBAAA,EACrD,OAAA,GAAS,IAAA,CAAK,sBAAA,cACd,QAAA,GAAU,wBAAA,CAAyB,QAAA,IAA8B,eAAA,CAAA,gBAAA,4BAAA,cAAA;;;;;;;;;;;;;;;AAAA;cAuC7D,MAAA,GAAM,OAAA,GAAgD,wBAAA,iBAAhD,MAAA,QAAA,MAAA"}
|
package/dist/rollup.cjs
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
-
const
|
|
2
|
+
const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
|
|
3
|
+
const require_unplugin = require('./unplugin.cjs');
|
|
3
4
|
let defu = require("defu");
|
|
4
5
|
let unplugin = require("unplugin");
|
|
5
6
|
let _stryke_type_checks_is_string = require("@stryke/type-checks/is-string");
|
|
6
7
|
let _stryke_convert_to_array = require("@stryke/convert/to-array");
|
|
7
8
|
let _rollup_plugin_inject = require("@rollup/plugin-inject");
|
|
8
|
-
_rollup_plugin_inject =
|
|
9
|
+
_rollup_plugin_inject = require_runtime.__toESM(_rollup_plugin_inject, 1);
|
|
9
10
|
let _rollup_plugin_node_resolve = require("@rollup/plugin-node-resolve");
|
|
10
|
-
_rollup_plugin_node_resolve =
|
|
11
|
+
_rollup_plugin_node_resolve = require_runtime.__toESM(_rollup_plugin_node_resolve, 1);
|
|
11
12
|
let _rollup_plugin_replace = require("@rollup/plugin-replace");
|
|
12
|
-
_rollup_plugin_replace =
|
|
13
|
+
_rollup_plugin_replace = require_runtime.__toESM(_rollup_plugin_replace, 1);
|
|
13
14
|
let rollup_plugin_typescript2 = require("rollup-plugin-typescript2");
|
|
14
|
-
rollup_plugin_typescript2 =
|
|
15
|
+
rollup_plugin_typescript2 = require_runtime.__toESM(rollup_plugin_typescript2, 1);
|
|
15
16
|
let _rollup_plugin_alias = require("@rollup/plugin-alias");
|
|
16
|
-
_rollup_plugin_alias =
|
|
17
|
+
_rollup_plugin_alias = require_runtime.__toESM(_rollup_plugin_alias, 1);
|
|
17
18
|
let node_fs = require("node:fs");
|
|
18
19
|
|
|
19
20
|
//#region src/rollup.ts
|
package/dist/rollup.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UnpluginExecutionOptions, UnpluginFactory } from "./types.cjs";
|
|
2
2
|
import { UnpluginFactoryDecorator, UnpluginFactoryOptions } from "./unplugin.cjs";
|
|
3
3
|
import { ExecutionContext, UnresolvedContext } from "@powerlines/core";
|
|
4
4
|
import { Plugin, RollupOptions } from "rollup";
|
|
@@ -40,7 +40,7 @@ declare function resolveOptions<TContext extends UnresolvedContext>(context: TCo
|
|
|
40
40
|
* @param decorate - A function to decorate the plugin options with additional properties or hooks. This can be used to add custom behavior to the plugin instance, such as additional hooks or configuration options. The function receives the generated plugin options and should return an object containing any additional properties or hooks to be merged into the final plugin options.
|
|
41
41
|
* @returns A function that generates a Rollup plugin instance when called. The generated plugin will invoke the Powerlines API hooks during the build process, allowing you to integrate Powerlines into your Rollup build.
|
|
42
42
|
*/
|
|
43
|
-
declare function createRollupFactory<TContext extends ExecutionContext>(options?: Omit<UnpluginFactoryOptions, "variant">, decorate?: UnpluginFactoryDecorator<TContext>): UnpluginFactory<ExecutionContext<import("@powerlines/core").ResolvedConfig
|
|
43
|
+
declare function createRollupFactory<TContext extends ExecutionContext>(options?: Omit<UnpluginFactoryOptions, "variant">, decorate?: UnpluginFactoryDecorator<TContext>): UnpluginFactory<ExecutionContext<import("@powerlines/core").ResolvedConfig, any>>;
|
|
44
44
|
/**
|
|
45
45
|
* A Rollup plugin that will invoke the Powerlines API hooks during the build process.
|
|
46
46
|
*
|
package/dist/rollup.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rollup.d.cts","names":[],"sources":["../src/rollup.ts"],"mappings":";;;;;;;;AA+CA;;;;cAAa,eAAA,EAAiB,MA+B7B;AAQD;;;;;;AAAA,iBAAgB,cAAA,kBAAgC,iBAAA,EAC9C,OAAA,EAAS,QAAA,GACR,aAAA;;;;;;;;AAAa;AAuHhB;;;;;;;;;;;;;;iBAAgB,mBAAA,kBAAqC,gBAAA,EACnD,OAAA,GAAS,IAAA,CAAK,sBAAA,cACd,QAAA,GAAU,wBAAA,CAAyB,QAAA,IAA8B,eAAA,CAAA,gBAAA,4BAAA,cAAA
|
|
1
|
+
{"version":3,"file":"rollup.d.cts","names":[],"sources":["../src/rollup.ts"],"mappings":";;;;;;;;AA+CA;;;;cAAa,eAAA,EAAiB,MA+B7B;AAQD;;;;;;AAAA,iBAAgB,cAAA,kBAAgC,iBAAA,EAC9C,OAAA,EAAS,QAAA,GACR,aAAA;;;;;;;;AAAa;AAuHhB;;;;;;;;;;;;;;iBAAgB,mBAAA,kBAAqC,gBAAA,EACnD,OAAA,GAAS,IAAA,CAAK,sBAAA,cACd,QAAA,GAAU,wBAAA,CAAyB,QAAA,IAA8B,eAAA,CAAA,gBAAA,4BAAA,cAAA;;;;;;;;;;AAAA;AAwCnE;;;;;;cAAa,MAAA,GAAM,OAAA,GAA4C,wBAAA,iBAA5C,MAAA,QAAA,MAAA"}
|
package/dist/rollup.d.mts
CHANGED
|
@@ -40,7 +40,7 @@ declare function resolveOptions<TContext extends UnresolvedContext>(context: TCo
|
|
|
40
40
|
* @param decorate - A function to decorate the plugin options with additional properties or hooks. This can be used to add custom behavior to the plugin instance, such as additional hooks or configuration options. The function receives the generated plugin options and should return an object containing any additional properties or hooks to be merged into the final plugin options.
|
|
41
41
|
* @returns A function that generates a Rollup plugin instance when called. The generated plugin will invoke the Powerlines API hooks during the build process, allowing you to integrate Powerlines into your Rollup build.
|
|
42
42
|
*/
|
|
43
|
-
declare function createRollupFactory<TContext extends ExecutionContext>(options?: Omit<UnpluginFactoryOptions, "variant">, decorate?: UnpluginFactoryDecorator<TContext>): UnpluginFactory<ExecutionContext<import("@powerlines/core").ResolvedConfig
|
|
43
|
+
declare function createRollupFactory<TContext extends ExecutionContext>(options?: Omit<UnpluginFactoryOptions, "variant">, decorate?: UnpluginFactoryDecorator<TContext>): UnpluginFactory<ExecutionContext<import("@powerlines/core").ResolvedConfig, any>>;
|
|
44
44
|
/**
|
|
45
45
|
* A Rollup plugin that will invoke the Powerlines API hooks during the build process.
|
|
46
46
|
*
|
package/dist/rollup.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rollup.d.mts","names":[],"sources":["../src/rollup.ts"],"mappings":";;;;;;;;AA+CA;;;;cAAa,eAAA,EAAiB,MA+B7B;AAQD;;;;;;AAAA,iBAAgB,cAAA,kBAAgC,iBAAA,EAC9C,OAAA,EAAS,QAAA,GACR,aAAA;;;;;;;;AAAa;AAuHhB;;;;;;;;;;;;;;iBAAgB,mBAAA,kBAAqC,gBAAA,EACnD,OAAA,GAAS,IAAA,CAAK,sBAAA,cACd,QAAA,GAAU,wBAAA,CAAyB,QAAA,IAA8B,eAAA,CAAA,gBAAA,4BAAA,cAAA
|
|
1
|
+
{"version":3,"file":"rollup.d.mts","names":[],"sources":["../src/rollup.ts"],"mappings":";;;;;;;;AA+CA;;;;cAAa,eAAA,EAAiB,MA+B7B;AAQD;;;;;;AAAA,iBAAgB,cAAA,kBAAgC,iBAAA,EAC9C,OAAA,EAAS,QAAA,GACR,aAAA;;;;;;;;AAAa;AAuHhB;;;;;;;;;;;;;;iBAAgB,mBAAA,kBAAqC,gBAAA,EACnD,OAAA,GAAS,IAAA,CAAK,sBAAA,cACd,QAAA,GAAU,wBAAA,CAAyB,QAAA,IAA8B,eAAA,CAAA,gBAAA,4BAAA,cAAA;;;;;;;;;;AAAA;AAwCnE;;;;;;cAAa,MAAA,GAAM,OAAA,GAA4C,wBAAA,iBAA5C,MAAA,QAAA,MAAA"}
|
package/dist/rspack.cjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
-
const
|
|
2
|
+
const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
|
|
3
|
+
const require_unplugin = require('./unplugin.cjs');
|
|
3
4
|
let _stryke_path_join_paths = require("@stryke/path/join-paths");
|
|
4
5
|
let defu = require("defu");
|
|
5
|
-
defu =
|
|
6
|
+
defu = require_runtime.__toESM(defu, 1);
|
|
6
7
|
let unplugin = require("unplugin");
|
|
7
8
|
|
|
8
9
|
//#region src/rspack.ts
|
package/dist/rspack.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UnpluginExecutionOptions, UnpluginFactory } from "./types.cjs";
|
|
2
2
|
import { UnpluginFactoryDecorator, UnpluginFactoryOptions } from "./unplugin.cjs";
|
|
3
3
|
import { ExecutionContext, UnresolvedContext } from "@powerlines/core";
|
|
4
4
|
import { RspackOptionsNormalized } from "@rspack/core";
|
|
@@ -33,7 +33,7 @@ declare function resolveOptions<TContext extends UnresolvedContext>(context: TCo
|
|
|
33
33
|
* @param decorate - A function to decorate the plugin options with additional properties or hooks. This can be used to add custom behavior to the plugin instance, such as additional hooks or configuration options. The function receives the generated plugin options and should return an object containing any additional properties or hooks to be merged into the final plugin options.
|
|
34
34
|
* @returns A function that generates a Rspack plugin instance when called. The generated plugin will invoke the Powerlines API hooks during the build process, allowing you to integrate Powerlines into your Rspack build.
|
|
35
35
|
*/
|
|
36
|
-
declare function createRspackFactory<TContext extends ExecutionContext>(options?: Omit<UnpluginFactoryOptions, "variant">, decorate?: UnpluginFactoryDecorator<TContext>): UnpluginFactory<ExecutionContext<import("@powerlines/core").ResolvedConfig
|
|
36
|
+
declare function createRspackFactory<TContext extends ExecutionContext>(options?: Omit<UnpluginFactoryOptions, "variant">, decorate?: UnpluginFactoryDecorator<TContext>): UnpluginFactory<ExecutionContext<import("@powerlines/core").ResolvedConfig, any>>;
|
|
37
37
|
/**
|
|
38
38
|
* An Rspack plugin that will invoke the Powerlines API hooks during the build process.
|
|
39
39
|
*
|
package/dist/rspack.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rspack.d.cts","names":[],"sources":["../src/rspack.ts"],"mappings":";;;;;;;;;AAuCA;;;iBAAgB,cAAA,kBAAgC,iBAAA,EAC9C,OAAA,EAAS,QAAA,GACR,OAAA,CAAQ,uBAAA;;;;;;;;;;;;;AAAuB;AAoElC;;;;;;;;;iBAAgB,mBAAA,kBAAqC,gBAAA,EACnD,OAAA,GAAS,IAAA,CAAK,sBAAA,cACd,QAAA,GAAU,wBAAA,CAAyB,QAAA,IAA8B,eAAA,CAAA,gBAAA,4BAAA,cAAA,
|
|
1
|
+
{"version":3,"file":"rspack.d.cts","names":[],"sources":["../src/rspack.ts"],"mappings":";;;;;;;;;AAuCA;;;iBAAgB,cAAA,kBAAgC,iBAAA,EAC9C,OAAA,EAAS,QAAA,GACR,OAAA,CAAQ,uBAAA;;;;;;;;;;;;;AAAuB;AAoElC;;;;;;;;;iBAAgB,mBAAA,kBAAqC,gBAAA,EACnD,OAAA,GAAS,IAAA,CAAK,sBAAA,cACd,QAAA,GAAU,wBAAA,CAAyB,QAAA,IAA8B,eAAA,CAAA,gBAAA,4BAAA,cAAA;;;;;;;;;;;;;;;AAAA;AAiCnE;cAAa,MAAA,GAAM,OAAA,GAA4C,wBAA5C,oCAAA,oBAAA"}
|
package/dist/rspack.d.mts
CHANGED
|
@@ -33,7 +33,7 @@ declare function resolveOptions<TContext extends UnresolvedContext>(context: TCo
|
|
|
33
33
|
* @param decorate - A function to decorate the plugin options with additional properties or hooks. This can be used to add custom behavior to the plugin instance, such as additional hooks or configuration options. The function receives the generated plugin options and should return an object containing any additional properties or hooks to be merged into the final plugin options.
|
|
34
34
|
* @returns A function that generates a Rspack plugin instance when called. The generated plugin will invoke the Powerlines API hooks during the build process, allowing you to integrate Powerlines into your Rspack build.
|
|
35
35
|
*/
|
|
36
|
-
declare function createRspackFactory<TContext extends ExecutionContext>(options?: Omit<UnpluginFactoryOptions, "variant">, decorate?: UnpluginFactoryDecorator<TContext>): UnpluginFactory<ExecutionContext<import("@powerlines/core").ResolvedConfig
|
|
36
|
+
declare function createRspackFactory<TContext extends ExecutionContext>(options?: Omit<UnpluginFactoryOptions, "variant">, decorate?: UnpluginFactoryDecorator<TContext>): UnpluginFactory<ExecutionContext<import("@powerlines/core").ResolvedConfig, any>>;
|
|
37
37
|
/**
|
|
38
38
|
* An Rspack plugin that will invoke the Powerlines API hooks during the build process.
|
|
39
39
|
*
|
package/dist/rspack.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rspack.d.mts","names":[],"sources":["../src/rspack.ts"],"mappings":";;;;;;;;;AAuCA;;;iBAAgB,cAAA,kBAAgC,iBAAA,EAC9C,OAAA,EAAS,QAAA,GACR,OAAA,CAAQ,uBAAA;;;;;;;;;;;;;AAAuB;AAoElC;;;;;;;;;iBAAgB,mBAAA,kBAAqC,gBAAA,EACnD,OAAA,GAAS,IAAA,CAAK,sBAAA,cACd,QAAA,GAAU,wBAAA,CAAyB,QAAA,IAA8B,eAAA,CAAA,gBAAA,4BAAA,cAAA,
|
|
1
|
+
{"version":3,"file":"rspack.d.mts","names":[],"sources":["../src/rspack.ts"],"mappings":";;;;;;;;;AAuCA;;;iBAAgB,cAAA,kBAAgC,iBAAA,EAC9C,OAAA,EAAS,QAAA,GACR,OAAA,CAAQ,uBAAA;;;;;;;;;;;;;AAAuB;AAoElC;;;;;;;;;iBAAgB,mBAAA,kBAAqC,gBAAA,EACnD,OAAA,GAAS,IAAA,CAAK,sBAAA,cACd,QAAA,GAAU,wBAAA,CAAyB,QAAA,IAA8B,eAAA,CAAA,gBAAA,4BAAA,cAAA;;;;;;;;;;;;;;;AAAA;AAiCnE;cAAa,MAAA,GAAM,OAAA,GAA4C,wBAA5C,oCAAA,oBAAA"}
|
package/dist/tsdown.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
-
const
|
|
2
|
+
const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
|
|
3
3
|
const require_rolldown = require('./rolldown.cjs');
|
|
4
4
|
let _stryke_path_append = require("@stryke/path/append");
|
|
5
5
|
let _stryke_path_file_path_fns = require("@stryke/path/file-path-fns");
|
|
6
6
|
let _stryke_path_join_paths = require("@stryke/path/join-paths");
|
|
7
7
|
let defu = require("defu");
|
|
8
|
-
defu =
|
|
8
|
+
defu = require_runtime.__toESM(defu, 1);
|
|
9
9
|
let _stryke_path_replace = require("@stryke/path/replace");
|
|
10
10
|
let _powerlines_core_plugin_utils = require("@powerlines/core/plugin-utils");
|
|
11
11
|
let _stryke_convert_to_array = require("@stryke/convert/to-array");
|
package/dist/tsup.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
-
const
|
|
2
|
+
const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
|
|
3
3
|
const require_esbuild = require('./esbuild.cjs');
|
|
4
4
|
let _stryke_path_append = require("@stryke/path/append");
|
|
5
5
|
let _stryke_path_file_path_fns = require("@stryke/path/file-path-fns");
|
|
6
6
|
let defu = require("defu");
|
|
7
|
-
defu =
|
|
7
|
+
defu = require_runtime.__toESM(defu, 1);
|
|
8
8
|
let _stryke_convert_to_array = require("@stryke/convert/to-array");
|
|
9
9
|
let _storm_software_tsup_constants = require("@storm-software/tsup/constants");
|
|
10
10
|
let _stryke_helpers_get_unique = require("@stryke/helpers/get-unique");
|
package/dist/types.d.cts
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BuildInlineConfig, ExecutionContext, ExecutionOptions, UnpluginOptions } from "@powerlines/core";
|
|
2
|
+
import { PartialKeys } from "@stryke/types/base";
|
|
3
|
+
import { UnpluginContextMeta } from "unplugin";
|
|
2
4
|
export type * from "@powerlines/core/types/unplugin";
|
|
3
|
-
|
|
5
|
+
|
|
6
|
+
//#region src/types.d.ts
|
|
7
|
+
type UnpluginExecutionOptionsBase = Omit<PartialKeys<ExecutionOptions, "cwd" | "configFile" | "framework" | "root" | "configIndex">, "executionId">;
|
|
8
|
+
type UnpluginExecutionOptions = Omit<BuildInlineConfig, "command"> & UnpluginExecutionOptionsBase;
|
|
9
|
+
type UnpluginFactory<TContext extends ExecutionContext> = (options: UnpluginExecutionOptions | undefined, meta: UnpluginContextMeta) => UnpluginOptions<TContext>;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { UnpluginExecutionOptions, UnpluginExecutionOptionsBase, UnpluginFactory };
|
|
12
|
+
//# sourceMappingURL=types.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.cts","names":[],"sources":["../src/types.ts"],"mappings":";;;;;;KA6BY,4BAAA,GAA+B,IAAA,CACzC,WAAA,CACE,gBAAA;AAAA,KAMQ,wBAAA,GAA2B,IAAA,CAAK,iBAAA,eAC1C,4BAAA;AAAA,KAEU,eAAA,kBAAiC,gBAAA,KAC3C,OAAA,EAAS,wBAAA,cACT,IAAA,EAAM,mBAAA,KACH,eAAA,CAAgB,QAAA"}
|
package/dist/unloader.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
-
const require_unplugin = require('./unplugin
|
|
2
|
+
const require_unplugin = require('./unplugin.cjs');
|
|
3
3
|
let unplugin = require("unplugin");
|
|
4
4
|
|
|
5
5
|
//#region src/unloader.ts
|