@powerlines/plugin-webpack 0.5.457 → 0.5.460
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/build-A0V1d711.d.mts +8 -0
- package/dist/build-A0V1d711.d.mts.map +1 -0
- package/dist/build-h6ZNzERR.d.cts +8 -0
- package/dist/build-h6ZNzERR.d.cts.map +1 -0
- package/dist/index.cjs +47 -13
- package/dist/index.d.cts +2 -4
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +2 -4
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +18 -8
- package/dist/index.mjs.map +1 -1
- package/dist/types/build.d.cts +2 -8
- package/dist/types/build.d.mts +2 -8
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.mts +2 -2
- package/dist/types/plugin.d.cts +3 -5
- package/dist/types/plugin.d.cts.map +1 -1
- package/dist/types/plugin.d.mts +3 -5
- package/dist/types/plugin.d.mts.map +1 -1
- package/package.json +9 -8
- package/dist/_virtual/_rolldown/runtime.cjs +0 -29
- package/dist/helpers/index.cjs +0 -6
- package/dist/helpers/index.d.cts +0 -3
- package/dist/helpers/index.d.mts +0 -3
- package/dist/helpers/index.mjs +0 -4
- package/dist/helpers/resolve-options.cjs +0 -39
- package/dist/helpers/resolve-options.d.cts +0 -14
- package/dist/helpers/resolve-options.d.cts.map +0 -1
- package/dist/helpers/resolve-options.d.mts +0 -14
- package/dist/helpers/resolve-options.d.mts.map +0 -1
- package/dist/helpers/resolve-options.mjs +0 -37
- package/dist/helpers/resolve-options.mjs.map +0 -1
- package/dist/helpers/unplugin.cjs +0 -18
- package/dist/helpers/unplugin.d.cts +0 -8
- package/dist/helpers/unplugin.d.cts.map +0 -1
- package/dist/helpers/unplugin.d.mts +0 -8
- package/dist/helpers/unplugin.d.mts.map +0 -1
- package/dist/helpers/unplugin.mjs +0 -17
- package/dist/helpers/unplugin.mjs.map +0 -1
- package/dist/types/build.d.cts.map +0 -1
- package/dist/types/build.d.mts.map +0 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Configuration } from "webpack";
|
|
2
|
+
|
|
3
|
+
//#region src/types/build.d.ts
|
|
4
|
+
type WebpackOptions = Omit<Configuration, "name" | "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw" | "environments" | "output" | "platform" | "define" | "external">;
|
|
5
|
+
declare type __ΩWebpackOptions = any[];
|
|
6
|
+
//#endregion
|
|
7
|
+
export { __ΩWebpackOptions as n, WebpackOptions as t };
|
|
8
|
+
//# sourceMappingURL=build-A0V1d711.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-A0V1d711.d.mts","names":[],"sources":["../src/types/build.ts"],"mappings":";;;KAoBY,cAAA,GAAiB,IAAA,CAC3B,aAAA;AAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Configuration } from "webpack";
|
|
2
|
+
|
|
3
|
+
//#region src/types/build.d.ts
|
|
4
|
+
type WebpackOptions = Omit<Configuration, "name" | "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw" | "environments" | "output" | "platform" | "define" | "external">;
|
|
5
|
+
declare type __ΩWebpackOptions = any[];
|
|
6
|
+
//#endregion
|
|
7
|
+
export { __ΩWebpackOptions as n, WebpackOptions as t };
|
|
8
|
+
//# sourceMappingURL=build-h6ZNzERR.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-h6ZNzERR.d.cts","names":[],"sources":["../src/types/build.ts"],"mappings":";;;KAoBY,cAAA,GAAiB,IAAA,CAC3B,aAAA;AAAA"}
|
package/dist/index.cjs
CHANGED
|
@@ -1,13 +1,40 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
//#region \0rolldown/runtime.js
|
|
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
|
+
require('./types/index.cjs');
|
|
30
|
+
let _powerlines_core = require("@powerlines/core");
|
|
6
31
|
let _powerlines_core_plugin_utils = require("@powerlines/core/plugin-utils");
|
|
32
|
+
let _powerlines_unplugin_webpack = require("@powerlines/unplugin/webpack");
|
|
7
33
|
let defu = require("defu");
|
|
8
|
-
defu =
|
|
34
|
+
defu = __toESM(defu, 1);
|
|
35
|
+
let unplugin = require("unplugin");
|
|
9
36
|
let webpack = require("webpack");
|
|
10
|
-
webpack =
|
|
37
|
+
webpack = __toESM(webpack, 1);
|
|
11
38
|
|
|
12
39
|
//#region src/index.ts
|
|
13
40
|
/**
|
|
@@ -22,10 +49,19 @@ const plugin = (options = {}) => {
|
|
|
22
49
|
},
|
|
23
50
|
async build() {
|
|
24
51
|
this.debug("Starting Webpack build process...");
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
52
|
+
const resolved = (0, _powerlines_unplugin_webpack.resolveOptions)(this);
|
|
53
|
+
const options = (0, defu.default)(this.config.webpack, {
|
|
54
|
+
...resolved,
|
|
55
|
+
config: false,
|
|
56
|
+
entry: this.entry.reduce((ret, entry) => {
|
|
57
|
+
ret[entry.output || entry.name || entry.file] = entry.file;
|
|
58
|
+
return ret;
|
|
59
|
+
}, {}),
|
|
60
|
+
plugins: [(0, unplugin.createWebpackPlugin)((0, _powerlines_core.createUnplugin)(this, {
|
|
61
|
+
silenceHookLogging: true,
|
|
62
|
+
name: "webpack"
|
|
63
|
+
}))()]
|
|
64
|
+
});
|
|
29
65
|
this.debug({
|
|
30
66
|
meta: { category: "config" },
|
|
31
67
|
message: `Resolved Webpack configuration: \n${(0, _powerlines_core_plugin_utils.formatConfig)(options)}`
|
|
@@ -36,7 +72,5 @@ const plugin = (options = {}) => {
|
|
|
36
72
|
};
|
|
37
73
|
|
|
38
74
|
//#endregion
|
|
39
|
-
exports.createWebpackPlugin = require_helpers_unplugin.createWebpackPlugin;
|
|
40
75
|
exports.default = plugin;
|
|
41
|
-
exports.plugin = plugin;
|
|
42
|
-
exports.resolveOptions = require_helpers_resolve_options.resolveOptions;
|
|
76
|
+
exports.plugin = plugin;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { WebpackPluginContext, WebpackPluginInitialConfig, WebpackPluginOptions, WebpackPluginResolvedConfig, WebpackPluginUserConfig, __ΩWebpackPluginContext, __ΩWebpackPluginInitialConfig, __ΩWebpackPluginOptions, __ΩWebpackPluginResolvedConfig, __ΩWebpackPluginUserConfig } from "./types/plugin.cjs";
|
|
3
|
-
import { createWebpackPlugin } from "./helpers/unplugin.cjs";
|
|
1
|
+
import { WebpackPluginContext, WebpackPluginOptions, WebpackPluginResolvedConfig, WebpackPluginUserConfig, __ΩWebpackPluginContext, __ΩWebpackPluginOptions, __ΩWebpackPluginResolvedConfig, __ΩWebpackPluginUserConfig } from "./types/plugin.cjs";
|
|
4
2
|
import { Plugin } from "@powerlines/core";
|
|
5
3
|
|
|
6
4
|
//#region src/index.d.ts
|
|
@@ -14,5 +12,5 @@ declare module "@powerlines/core" {
|
|
|
14
12
|
*/
|
|
15
13
|
declare const plugin: <TContext extends WebpackPluginContext = WebpackPluginContext>(options?: WebpackPluginOptions) => Plugin<TContext>;
|
|
16
14
|
//#endregion
|
|
17
|
-
export { WebpackPluginContext,
|
|
15
|
+
export { WebpackPluginContext, WebpackPluginOptions, WebpackPluginResolvedConfig, WebpackPluginUserConfig, __ΩWebpackPluginContext, __ΩWebpackPluginOptions, __ΩWebpackPluginResolvedConfig, __ΩWebpackPluginUserConfig, plugin as default, plugin };
|
|
18
16
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;YA6BY,MAAA;IACR,OAAA,GAAU,oBAAA;EAAA;AAAA;;;;cAOD,MAAA,oBACM,oBAAA,GAAuB,oBAAA,EAExC,OAAA,GAAS,oBAAA,KACR,MAAA,CAAO,QAAA"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { WebpackPluginContext, WebpackPluginInitialConfig, WebpackPluginOptions, WebpackPluginResolvedConfig, WebpackPluginUserConfig, __ΩWebpackPluginContext, __ΩWebpackPluginInitialConfig, __ΩWebpackPluginOptions, __ΩWebpackPluginResolvedConfig, __ΩWebpackPluginUserConfig } from "./types/plugin.mjs";
|
|
3
|
-
import { createWebpackPlugin } from "./helpers/unplugin.mjs";
|
|
1
|
+
import { WebpackPluginContext, WebpackPluginOptions, WebpackPluginResolvedConfig, WebpackPluginUserConfig, __ΩWebpackPluginContext, __ΩWebpackPluginOptions, __ΩWebpackPluginResolvedConfig, __ΩWebpackPluginUserConfig } from "./types/plugin.mjs";
|
|
4
2
|
import { Plugin } from "@powerlines/core";
|
|
5
3
|
|
|
6
4
|
//#region src/index.d.ts
|
|
@@ -14,5 +12,5 @@ declare module "@powerlines/core" {
|
|
|
14
12
|
*/
|
|
15
13
|
declare const plugin: <TContext extends WebpackPluginContext = WebpackPluginContext>(options?: WebpackPluginOptions) => Plugin<TContext>;
|
|
16
14
|
//#endregion
|
|
17
|
-
export { WebpackPluginContext,
|
|
15
|
+
export { WebpackPluginContext, WebpackPluginOptions, WebpackPluginResolvedConfig, WebpackPluginUserConfig, __ΩWebpackPluginContext, __ΩWebpackPluginOptions, __ΩWebpackPluginResolvedConfig, __ΩWebpackPluginUserConfig, plugin as default, plugin };
|
|
18
16
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;YA6BY,MAAA;IACR,OAAA,GAAU,oBAAA;EAAA;AAAA;;;;cAOD,MAAA,oBACM,oBAAA,GAAuB,oBAAA,EAExC,OAAA,GAAS,oBAAA,KACR,MAAA,CAAO,QAAA"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import "./helpers/index.mjs";
|
|
1
|
+
import "./types/index.mjs";
|
|
2
|
+
import { createUnplugin } from "@powerlines/core";
|
|
4
3
|
import { formatConfig } from "@powerlines/core/plugin-utils";
|
|
4
|
+
import { resolveOptions } from "@powerlines/unplugin/webpack";
|
|
5
5
|
import defu from "defu";
|
|
6
|
+
import { createWebpackPlugin } from "unplugin";
|
|
6
7
|
import webpack from "webpack";
|
|
7
8
|
|
|
8
9
|
//#region src/index.ts
|
|
@@ -18,10 +19,19 @@ const plugin = (options = {}) => {
|
|
|
18
19
|
},
|
|
19
20
|
async build() {
|
|
20
21
|
this.debug("Starting Webpack build process...");
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
const resolved = resolveOptions(this);
|
|
23
|
+
const options = defu(this.config.webpack, {
|
|
24
|
+
...resolved,
|
|
25
|
+
config: false,
|
|
26
|
+
entry: this.entry.reduce((ret, entry) => {
|
|
27
|
+
ret[entry.output || entry.name || entry.file] = entry.file;
|
|
28
|
+
return ret;
|
|
29
|
+
}, {}),
|
|
30
|
+
plugins: [createWebpackPlugin(createUnplugin(this, {
|
|
31
|
+
silenceHookLogging: true,
|
|
32
|
+
name: "webpack"
|
|
33
|
+
}))()]
|
|
34
|
+
});
|
|
25
35
|
this.debug({
|
|
26
36
|
meta: { category: "config" },
|
|
27
37
|
message: `Resolved Webpack configuration: \n${formatConfig(options)}`
|
|
@@ -32,5 +42,5 @@ const plugin = (options = {}) => {
|
|
|
32
42
|
};
|
|
33
43
|
|
|
34
44
|
//#endregion
|
|
35
|
-
export {
|
|
45
|
+
export { plugin as default, plugin };
|
|
36
46
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +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 { Plugin } from \"@powerlines/core\";\nimport { formatConfig } from \"@powerlines/core/plugin-utils\";\nimport
|
|
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 { createUnplugin, Plugin } from \"@powerlines/core\";\nimport { formatConfig } from \"@powerlines/core/plugin-utils\";\nimport { resolveOptions } from \"@powerlines/unplugin/webpack\";\nimport defu from \"defu\";\nimport { createWebpackPlugin } from \"unplugin\";\nimport webpack, { Configuration } from \"webpack\";\nimport { WebpackPluginContext, WebpackPluginOptions } from \"./types/plugin\";\n\nexport * from \"./types\";\n\ndeclare module \"@powerlines/core\" {\n interface Config {\n webpack?: WebpackPluginOptions;\n }\n}\n\n/**\n * A Powerlines plugin to assist in developing other Powerlines plugins.\n */\nexport const plugin = <\n TContext extends WebpackPluginContext = WebpackPluginContext\n>(\n options: WebpackPluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"webpack\",\n config() {\n this.trace(\n \"Providing default configuration for the Powerlines `webpack` build plugin.\"\n );\n\n return {\n webpack: {\n ...options\n }\n };\n },\n async build() {\n this.debug(\"Starting Webpack build process...\");\n\n const resolved = resolveOptions(this);\n const options = defu(this.config.webpack, {\n ...resolved,\n config: false,\n entry: this.entry.reduce(\n (ret, entry) => {\n ret[entry.output || entry.name || entry.file] = entry.file;\n\n return ret;\n },\n {} as Record<string, string>\n ),\n plugins: [\n createWebpackPlugin(\n createUnplugin(this, {\n silenceHookLogging: true,\n name: \"webpack\"\n })\n )()\n ]\n }) as Configuration;\n\n this.debug({\n meta: {\n category: \"config\"\n },\n message: `Resolved Webpack configuration: \\n${formatConfig(options)}`\n });\n\n webpack(options);\n }\n };\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;AAqCA,MAAa,UAGX,UAAgC,EAAE,KACb;AACrB,QAAO;EACL,MAAM;EACN,SAAS;AACP,QAAK,MACH,6EACD;AAED,UAAO,EACL,SAAS,EACP,GAAG,SACJ,EACF;;EAEH,MAAM,QAAQ;AACZ,QAAK,MAAM,oCAAoC;GAE/C,MAAM,WAAW,eAAe,KAAK;GACrC,MAAM,UAAU,KAAK,KAAK,OAAO,SAAS;IACxC,GAAG;IACH,QAAQ;IACR,OAAO,KAAK,MAAM,QACf,KAAK,UAAU;AACd,SAAI,MAAM,UAAU,MAAM,QAAQ,MAAM,QAAQ,MAAM;AAEtD,YAAO;OAET,EAAE,CACH;IACD,SAAS,CACP,oBACE,eAAe,MAAM;KACnB,oBAAoB;KACpB,MAAM;KACP,CAAC,CACH,EAAE,CACJ;IACF,CAAC;AAEF,QAAK,MAAM;IACT,MAAM,EACJ,UAAU,UACX;IACD,SAAS,qCAAqC,aAAa,QAAQ;IACpE,CAAC;AAEF,WAAQ,QAAQ;;EAEnB"}
|
package/dist/types/build.d.cts
CHANGED
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
//#region src/types/build.d.ts
|
|
4
|
-
type WebpackOptions = Omit<Configuration, "name" | "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw" | "environments" | "output" | "platform" | "define" | "external">;
|
|
5
|
-
declare type __ΩWebpackOptions = any[];
|
|
6
|
-
//#endregion
|
|
7
|
-
export { WebpackOptions, __ΩWebpackOptions };
|
|
8
|
-
//# sourceMappingURL=build.d.cts.map
|
|
1
|
+
import { n as __ΩWebpackOptions, t as WebpackOptions } from "../build-h6ZNzERR.cjs";
|
|
2
|
+
export { WebpackOptions, __ΩWebpackOptions };
|
package/dist/types/build.d.mts
CHANGED
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
//#region src/types/build.d.ts
|
|
4
|
-
type WebpackOptions = Omit<Configuration, "name" | "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw" | "environments" | "output" | "platform" | "define" | "external">;
|
|
5
|
-
declare type __ΩWebpackOptions = any[];
|
|
6
|
-
//#endregion
|
|
7
|
-
export { WebpackOptions, __ΩWebpackOptions };
|
|
8
|
-
//# sourceMappingURL=build.d.mts.map
|
|
1
|
+
import { n as __ΩWebpackOptions, t as WebpackOptions } from "../build-A0V1d711.mjs";
|
|
2
|
+
export { WebpackOptions, __ΩWebpackOptions };
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { WebpackPluginContext,
|
|
2
|
-
export { WebpackPluginContext,
|
|
1
|
+
import { WebpackPluginContext, WebpackPluginOptions, WebpackPluginResolvedConfig, WebpackPluginUserConfig, __ΩWebpackPluginContext, __ΩWebpackPluginOptions, __ΩWebpackPluginResolvedConfig, __ΩWebpackPluginUserConfig } from "./plugin.cjs";
|
|
2
|
+
export { WebpackPluginContext, WebpackPluginOptions, WebpackPluginResolvedConfig, WebpackPluginUserConfig, __ΩWebpackPluginContext, __ΩWebpackPluginOptions, __ΩWebpackPluginResolvedConfig, __ΩWebpackPluginUserConfig };
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { WebpackPluginContext,
|
|
2
|
-
export { WebpackPluginContext,
|
|
1
|
+
import { WebpackPluginContext, WebpackPluginOptions, WebpackPluginResolvedConfig, WebpackPluginUserConfig, __ΩWebpackPluginContext, __ΩWebpackPluginOptions, __ΩWebpackPluginResolvedConfig, __ΩWebpackPluginUserConfig } from "./plugin.mjs";
|
|
2
|
+
export { WebpackPluginContext, WebpackPluginOptions, WebpackPluginResolvedConfig, WebpackPluginUserConfig, __ΩWebpackPluginContext, __ΩWebpackPluginOptions, __ΩWebpackPluginResolvedConfig, __ΩWebpackPluginUserConfig };
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,21 +1,19 @@
|
|
|
1
|
-
import { WebpackOptions } from "
|
|
2
|
-
import {
|
|
1
|
+
import { t as WebpackOptions } from "../build-h6ZNzERR.cjs";
|
|
2
|
+
import { PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core";
|
|
3
3
|
|
|
4
4
|
//#region src/types/plugin.d.ts
|
|
5
5
|
type WebpackPluginOptions = Partial<WebpackOptions>;
|
|
6
6
|
interface WebpackPluginUserConfig extends UserConfig {
|
|
7
7
|
webpack?: WebpackPluginOptions;
|
|
8
8
|
}
|
|
9
|
-
type WebpackPluginInitialConfig = InitialPluginConfig<WebpackPluginUserConfig>;
|
|
10
9
|
interface WebpackPluginResolvedConfig extends ResolvedConfig {
|
|
11
10
|
webpack: WebpackOptions;
|
|
12
11
|
}
|
|
13
12
|
type WebpackPluginContext<TResolvedConfig extends WebpackPluginResolvedConfig = WebpackPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
14
13
|
declare type __ΩWebpackPluginOptions = any[];
|
|
15
14
|
declare type __ΩWebpackPluginUserConfig = any[];
|
|
16
|
-
declare type __ΩWebpackPluginInitialConfig = any[];
|
|
17
15
|
declare type __ΩWebpackPluginResolvedConfig = any[];
|
|
18
16
|
declare type __ΩWebpackPluginContext = any[];
|
|
19
17
|
//#endregion
|
|
20
|
-
export { WebpackPluginContext,
|
|
18
|
+
export { WebpackPluginContext, WebpackPluginOptions, WebpackPluginResolvedConfig, WebpackPluginUserConfig, __ΩWebpackPluginContext, __ΩWebpackPluginOptions, __ΩWebpackPluginResolvedConfig, __ΩWebpackPluginUserConfig };
|
|
21
19
|
//# sourceMappingURL=plugin.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;KAqBY,oBAAA,GAAuB,OAAA,CAAQ,cAAA;AAAA,UAE1B,uBAAA,SAAgC,UAAA;EAC/C,OAAA,GAAU,oBAAA;AAAA;AAAA,UAGK,2BAAA,SAAoC,cAAA;EACnD,OAAA,EAAS,cAAA;AAAA;AAAA,KAGC,oBAAA,yBACc,2BAAA,GACtB,2BAAA,IACA,aAAA,CAAc,eAAA;AAAA"}
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,21 +1,19 @@
|
|
|
1
|
-
import { WebpackOptions } from "
|
|
2
|
-
import {
|
|
1
|
+
import { t as WebpackOptions } from "../build-A0V1d711.mjs";
|
|
2
|
+
import { PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core";
|
|
3
3
|
|
|
4
4
|
//#region src/types/plugin.d.ts
|
|
5
5
|
type WebpackPluginOptions = Partial<WebpackOptions>;
|
|
6
6
|
interface WebpackPluginUserConfig extends UserConfig {
|
|
7
7
|
webpack?: WebpackPluginOptions;
|
|
8
8
|
}
|
|
9
|
-
type WebpackPluginInitialConfig = InitialPluginConfig<WebpackPluginUserConfig>;
|
|
10
9
|
interface WebpackPluginResolvedConfig extends ResolvedConfig {
|
|
11
10
|
webpack: WebpackOptions;
|
|
12
11
|
}
|
|
13
12
|
type WebpackPluginContext<TResolvedConfig extends WebpackPluginResolvedConfig = WebpackPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
14
13
|
declare type __ΩWebpackPluginOptions = any[];
|
|
15
14
|
declare type __ΩWebpackPluginUserConfig = any[];
|
|
16
|
-
declare type __ΩWebpackPluginInitialConfig = any[];
|
|
17
15
|
declare type __ΩWebpackPluginResolvedConfig = any[];
|
|
18
16
|
declare type __ΩWebpackPluginContext = any[];
|
|
19
17
|
//#endregion
|
|
20
|
-
export { WebpackPluginContext,
|
|
18
|
+
export { WebpackPluginContext, WebpackPluginOptions, WebpackPluginResolvedConfig, WebpackPluginUserConfig, __ΩWebpackPluginContext, __ΩWebpackPluginOptions, __ΩWebpackPluginResolvedConfig, __ΩWebpackPluginUserConfig };
|
|
21
19
|
//# sourceMappingURL=plugin.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;KAqBY,oBAAA,GAAuB,OAAA,CAAQ,cAAA;AAAA,UAE1B,uBAAA,SAAgC,UAAA;EAC/C,OAAA,GAAU,oBAAA;AAAA;AAAA,UAGK,2BAAA,SAAoC,cAAA;EACnD,OAAA,EAAS,cAAA;AAAA;AAAA,KAGC,oBAAA,yBACc,2BAAA,GACtB,2BAAA,IACA,aAAA,CAAc,eAAA;AAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-webpack",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.460",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A package containing a Powerlines plugin to build projects using Webpack.",
|
|
6
6
|
"keywords": ["webpack", "powerlines", "storm-software", "powerlines-plugin"],
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "github",
|
|
14
14
|
"url": "https://github.com/storm-software/powerlines.git",
|
|
15
|
-
"directory": "packages/plugin-webpack"
|
|
15
|
+
"directory": "packages/plugins/plugin-webpack"
|
|
16
16
|
},
|
|
17
17
|
"funding": {
|
|
18
18
|
"type": "github",
|
|
@@ -71,17 +71,18 @@
|
|
|
71
71
|
"module": "./dist/index.mjs",
|
|
72
72
|
"types": "./dist/index.d.cts",
|
|
73
73
|
"typings": "dist/index.d.mts",
|
|
74
|
-
"files": ["dist
|
|
74
|
+
"files": ["dist"],
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"@powerlines/core": "^0.
|
|
77
|
-
"@
|
|
78
|
-
"@stryke/
|
|
76
|
+
"@powerlines/core": "^0.9.2",
|
|
77
|
+
"@powerlines/unplugin": "^0.0.4",
|
|
78
|
+
"@stryke/helpers": "^0.10.15",
|
|
79
|
+
"@stryke/path": "^0.29.2",
|
|
79
80
|
"defu": "^6.1.7",
|
|
80
81
|
"unplugin": "^3.0.0"
|
|
81
82
|
},
|
|
82
|
-
"devDependencies": { "@types/node": "^25.
|
|
83
|
+
"devDependencies": { "@types/node": "^25.7.0", "webpack": "^5.106.2" },
|
|
83
84
|
"peerDependencies": { "webpack": ">=5.101.0" },
|
|
84
85
|
"peerDependenciesMeta": { "webpack": { "optional": false } },
|
|
85
86
|
"publishConfig": { "access": "public" },
|
|
86
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "3c5c701e16af74006dd70b965009d41eb22ace2a"
|
|
87
88
|
}
|
|
@@ -1,29 +0,0 @@
|
|
|
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 __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;
|
package/dist/helpers/index.cjs
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_helpers_resolve_options = require('./resolve-options.cjs');
|
|
3
|
-
const require_helpers_unplugin = require('./unplugin.cjs');
|
|
4
|
-
|
|
5
|
-
exports.createWebpackPlugin = require_helpers_unplugin.createWebpackPlugin;
|
|
6
|
-
exports.resolveOptions = require_helpers_resolve_options.resolveOptions;
|
package/dist/helpers/index.d.cts
DELETED
package/dist/helpers/index.d.mts
DELETED
package/dist/helpers/index.mjs
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
|
|
3
|
-
let defu = require("defu");
|
|
4
|
-
defu = require_runtime.__toESM(defu, 1);
|
|
5
|
-
let _stryke_path_join_paths = require("@stryke/path/join-paths");
|
|
6
|
-
|
|
7
|
-
//#region src/helpers/resolve-options.ts
|
|
8
|
-
/**
|
|
9
|
-
* Resolves the options for [webpack](https://webpack.js.org/).
|
|
10
|
-
*
|
|
11
|
-
* @param context - The build context.
|
|
12
|
-
* @returns The resolved options.
|
|
13
|
-
*/
|
|
14
|
-
function resolveOptions(context) {
|
|
15
|
-
return (0, defu.default)({ resolve: { alias: context.alias } }, context.config.webpack ? context.config.webpack : {}, {
|
|
16
|
-
output: { path: context.config.output.path },
|
|
17
|
-
name: context.config.name,
|
|
18
|
-
plugins: context.config.webpack?.plugins ?? [],
|
|
19
|
-
node: context.config.platform === "node" ? {
|
|
20
|
-
__dirname: true,
|
|
21
|
-
__filename: true,
|
|
22
|
-
global: true
|
|
23
|
-
} : false,
|
|
24
|
-
mode: context.config.mode === "development" ? "development" : "production",
|
|
25
|
-
cache: {
|
|
26
|
-
type: "filesystem",
|
|
27
|
-
cacheDirectory: (0, _stryke_path_join_paths.joinPaths)(context.cachePath, "webpack", "cache")
|
|
28
|
-
},
|
|
29
|
-
recordsInputPath: (0, _stryke_path_join_paths.joinPaths)(context.cachePath, "webpack", ".webpack-records.json"),
|
|
30
|
-
recordsOutputPath: (0, _stryke_path_join_paths.joinPaths)(context.cachePath, "webpack", ".webpack-records.json"),
|
|
31
|
-
context: (0, _stryke_path_join_paths.joinPaths)(context.config.cwd, context.config.root),
|
|
32
|
-
noExternal: context.builtins,
|
|
33
|
-
devtool: context.config.output.sourceMap ? "source-map" : false,
|
|
34
|
-
optimization: { minimize: context.config.output.minify }
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
//#endregion
|
|
39
|
-
exports.resolveOptions = resolveOptions;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Context } from "@powerlines/core";
|
|
2
|
-
import { Configuration } from "webpack";
|
|
3
|
-
|
|
4
|
-
//#region src/helpers/resolve-options.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* Resolves the options for [webpack](https://webpack.js.org/).
|
|
7
|
-
*
|
|
8
|
-
* @param context - The build context.
|
|
9
|
-
* @returns The resolved options.
|
|
10
|
-
*/
|
|
11
|
-
declare function resolveOptions(context: Context): Configuration;
|
|
12
|
-
//#endregion
|
|
13
|
-
export { resolveOptions };
|
|
14
|
-
//# sourceMappingURL=resolve-options.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-options.d.cts","names":[],"sources":["../../src/helpers/resolve-options.ts"],"mappings":";;;;;;AA8BA;;;;iBAAgB,cAAA,CAAe,OAAA,EAAS,OAAA,GAAU,aAAA"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Configuration } from "webpack";
|
|
2
|
-
import { Context } from "@powerlines/core";
|
|
3
|
-
|
|
4
|
-
//#region src/helpers/resolve-options.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* Resolves the options for [webpack](https://webpack.js.org/).
|
|
7
|
-
*
|
|
8
|
-
* @param context - The build context.
|
|
9
|
-
* @returns The resolved options.
|
|
10
|
-
*/
|
|
11
|
-
declare function resolveOptions(context: Context): Configuration;
|
|
12
|
-
//#endregion
|
|
13
|
-
export { resolveOptions };
|
|
14
|
-
//# sourceMappingURL=resolve-options.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-options.d.mts","names":[],"sources":["../../src/helpers/resolve-options.ts"],"mappings":";;;;;;AA8BA;;;;iBAAgB,cAAA,CAAe,OAAA,EAAS,OAAA,GAAU,aAAA"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import defu from "defu";
|
|
2
|
-
import { joinPaths } from "@stryke/path/join-paths";
|
|
3
|
-
|
|
4
|
-
//#region src/helpers/resolve-options.ts
|
|
5
|
-
/**
|
|
6
|
-
* Resolves the options for [webpack](https://webpack.js.org/).
|
|
7
|
-
*
|
|
8
|
-
* @param context - The build context.
|
|
9
|
-
* @returns The resolved options.
|
|
10
|
-
*/
|
|
11
|
-
function resolveOptions(context) {
|
|
12
|
-
return defu({ resolve: { alias: context.alias } }, context.config.webpack ? context.config.webpack : {}, {
|
|
13
|
-
output: { path: context.config.output.path },
|
|
14
|
-
name: context.config.name,
|
|
15
|
-
plugins: context.config.webpack?.plugins ?? [],
|
|
16
|
-
node: context.config.platform === "node" ? {
|
|
17
|
-
__dirname: true,
|
|
18
|
-
__filename: true,
|
|
19
|
-
global: true
|
|
20
|
-
} : false,
|
|
21
|
-
mode: context.config.mode === "development" ? "development" : "production",
|
|
22
|
-
cache: {
|
|
23
|
-
type: "filesystem",
|
|
24
|
-
cacheDirectory: joinPaths(context.cachePath, "webpack", "cache")
|
|
25
|
-
},
|
|
26
|
-
recordsInputPath: joinPaths(context.cachePath, "webpack", ".webpack-records.json"),
|
|
27
|
-
recordsOutputPath: joinPaths(context.cachePath, "webpack", ".webpack-records.json"),
|
|
28
|
-
context: joinPaths(context.config.cwd, context.config.root),
|
|
29
|
-
noExternal: context.builtins,
|
|
30
|
-
devtool: context.config.output.sourceMap ? "source-map" : false,
|
|
31
|
-
optimization: { minimize: context.config.output.minify }
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
//#endregion
|
|
36
|
-
export { resolveOptions };
|
|
37
|
-
//# sourceMappingURL=resolve-options.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-options.mjs","names":[],"sources":["../../src/helpers/resolve-options.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 { Context } from \"@powerlines/core\";\nimport { joinPaths } from \"@stryke/path/join-paths\";\nimport defu from \"defu\";\nimport type { Configuration as ExternalWebpackOptions } from \"webpack\";\nimport { WebpackPluginResolvedConfig } from \"../types\";\n\n/**\n * Resolves the options for [webpack](https://webpack.js.org/).\n *\n * @param context - The build context.\n * @returns The resolved options.\n */\nexport function resolveOptions(context: Context): ExternalWebpackOptions {\n return defu(\n {\n resolve: {\n alias: context.alias\n }\n },\n (context.config as WebpackPluginResolvedConfig).webpack\n ? (context.config as WebpackPluginResolvedConfig).webpack\n : {},\n {\n output: {\n path: context.config.output.path\n },\n name: context.config.name,\n plugins:\n (context.config as WebpackPluginResolvedConfig).webpack?.plugins ?? [],\n node:\n context.config.platform === \"node\"\n ? {\n __dirname: true,\n __filename: true,\n global: true\n }\n : false,\n mode:\n context.config.mode === \"development\"\n ? (\"development\" as const)\n : (\"production\" as const),\n cache: {\n type: \"filesystem\" as const,\n cacheDirectory: joinPaths(context.cachePath, \"webpack\", \"cache\")\n },\n recordsInputPath: joinPaths(\n context.cachePath,\n \"webpack\",\n \".webpack-records.json\"\n ),\n recordsOutputPath: joinPaths(\n context.cachePath,\n \"webpack\",\n \".webpack-records.json\"\n ),\n context: joinPaths(context.config.cwd, context.config.root),\n noExternal: context.builtins,\n devtool: context.config.output.sourceMap ? \"source-map\" : false,\n optimization: {\n minimize: context.config.output.minify\n }\n }\n ) as ExternalWebpackOptions;\n}\n"],"mappings":";;;;;;;;;;AA8BA,SAAgB,eAAe,SAA0C;AACvE,QAAO,KACL,EACE,SAAS,EACP,OAAO,QAAQ,OAChB,EACF,EACA,QAAQ,OAAuC,UAC3C,QAAQ,OAAuC,UAChD,EAAE,EACN;EACE,QAAQ,EACN,MAAM,QAAQ,OAAO,OAAO,MAC7B;EACD,MAAM,QAAQ,OAAO;EACrB,SACG,QAAQ,OAAuC,SAAS,WAAW,EAAE;EACxE,MACE,QAAQ,OAAO,aAAa,SACxB;GACE,WAAW;GACX,YAAY;GACZ,QAAQ;GACT,GACD;EACN,MACE,QAAQ,OAAO,SAAS,gBACnB,gBACA;EACP,OAAO;GACL,MAAM;GACN,gBAAgB,UAAU,QAAQ,WAAW,WAAW,QAAQ;GACjE;EACD,kBAAkB,UAChB,QAAQ,WACR,WACA,wBACD;EACD,mBAAmB,UACjB,QAAQ,WACR,WACA,wBACD;EACD,SAAS,UAAU,QAAQ,OAAO,KAAK,QAAQ,OAAO,KAAK;EAC3D,YAAY,QAAQ;EACpB,SAAS,QAAQ,OAAO,OAAO,YAAY,eAAe;EAC1D,cAAc,EACZ,UAAU,QAAQ,OAAO,OAAO,QACjC;EACF,CACF"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
|
|
3
|
-
let _powerlines_core_lib_unplugin = require("@powerlines/core/lib/unplugin");
|
|
4
|
-
let unplugin = require("unplugin");
|
|
5
|
-
|
|
6
|
-
//#region src/helpers/unplugin.ts
|
|
7
|
-
function createWebpackPlugin(context) {
|
|
8
|
-
return (0, unplugin.createWebpackPlugin)((0, _powerlines_core_lib_unplugin.createUnplugin)(context, {
|
|
9
|
-
silenceHookLogging: true,
|
|
10
|
-
name: "webpack"
|
|
11
|
-
}))({
|
|
12
|
-
...context.options,
|
|
13
|
-
...context.config.initialConfig
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
//#endregion
|
|
18
|
-
exports.createWebpackPlugin = createWebpackPlugin;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { WebpackPluginContext } from "../types/plugin.cjs";
|
|
2
|
-
import * as _$webpack from "webpack";
|
|
3
|
-
|
|
4
|
-
//#region src/helpers/unplugin.d.ts
|
|
5
|
-
declare function createWebpackPlugin(context: WebpackPluginContext): _$webpack.WebpackPluginInstance;
|
|
6
|
-
//#endregion
|
|
7
|
-
export { createWebpackPlugin };
|
|
8
|
-
//# sourceMappingURL=unplugin.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unplugin.d.cts","names":[],"sources":["../../src/helpers/unplugin.ts"],"mappings":";;;;iBAsBgB,mBAAA,CAAoB,OAAA,EAAS,oBAAA,GAAoB,SAAA,CAAA,qBAAA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { WebpackPluginContext } from "../types/plugin.mjs";
|
|
2
|
-
import * as _$webpack from "webpack";
|
|
3
|
-
|
|
4
|
-
//#region src/helpers/unplugin.d.ts
|
|
5
|
-
declare function createWebpackPlugin(context: WebpackPluginContext): _$webpack.WebpackPluginInstance;
|
|
6
|
-
//#endregion
|
|
7
|
-
export { createWebpackPlugin };
|
|
8
|
-
//# sourceMappingURL=unplugin.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unplugin.d.mts","names":[],"sources":["../../src/helpers/unplugin.ts"],"mappings":";;;;iBAsBgB,mBAAA,CAAoB,OAAA,EAAS,oBAAA,GAAoB,SAAA,CAAA,qBAAA"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { createUnplugin } from "@powerlines/core/lib/unplugin";
|
|
2
|
-
import { createWebpackPlugin as createWebpackPlugin$1 } from "unplugin";
|
|
3
|
-
|
|
4
|
-
//#region src/helpers/unplugin.ts
|
|
5
|
-
function createWebpackPlugin(context) {
|
|
6
|
-
return createWebpackPlugin$1(createUnplugin(context, {
|
|
7
|
-
silenceHookLogging: true,
|
|
8
|
-
name: "webpack"
|
|
9
|
-
}))({
|
|
10
|
-
...context.options,
|
|
11
|
-
...context.config.initialConfig
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
//#endregion
|
|
16
|
-
export { createWebpackPlugin };
|
|
17
|
-
//# sourceMappingURL=unplugin.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unplugin.mjs","names":["createWebpackUnplugin"],"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/core/lib/unplugin\";\nimport { createWebpackPlugin as createWebpackUnplugin } from \"unplugin\";\nimport { WebpackPluginContext } from \"../types/plugin\";\n\nexport function createWebpackPlugin(context: WebpackPluginContext) {\n return createWebpackUnplugin(\n createUnplugin(context, { silenceHookLogging: true, name: \"webpack\" })\n )({ ...context.options, ...context.config.initialConfig });\n}\n"],"mappings":";;;;AAsBA,SAAgB,oBAAoB,SAA+B;AACjE,QAAOA,sBACL,eAAe,SAAS;EAAE,oBAAoB;EAAM,MAAM;EAAW,CAAC,CACvE,CAAC;EAAE,GAAG,QAAQ;EAAS,GAAG,QAAQ,OAAO;EAAe,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.cts","names":[],"sources":["../../src/types/build.ts"],"mappings":";;;KAoBY,cAAA,GAAiB,IAAA,CAC3B,aAAA;AAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.mts","names":[],"sources":["../../src/types/build.ts"],"mappings":";;;KAoBY,cAAA,GAAiB,IAAA,CAC3B,aAAA;AAAA"}
|