@powerlines/plugin-webpack 0.5.261 → 0.5.263
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 +29 -0
- package/dist/helpers/index.cjs +2 -3
- package/dist/helpers/index.d.cts +1 -3
- package/dist/helpers/index.d.mts +1 -3
- package/dist/helpers/index.mjs +1 -2
- package/dist/helpers/unplugin.cjs +10 -2
- package/dist/helpers/unplugin.d.cts +8 -3
- package/dist/helpers/unplugin.d.cts.map +1 -0
- package/dist/helpers/unplugin.d.mts +8 -3
- package/dist/helpers/unplugin.d.mts.map +1 -0
- package/dist/helpers/unplugin.mjs +10 -2
- package/dist/helpers/unplugin.mjs.map +1 -0
- package/dist/index.cjs +7 -36
- package/dist/index.d.cts +4 -4
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +2 -4
- package/dist/index.mjs.map +1 -1
- package/dist/types/index.cjs +0 -2
- package/dist/types/index.d.cts +1 -2
- package/dist/types/index.d.mts +1 -2
- package/dist/types/index.mjs +0 -3
- package/dist/types/plugin.cjs +0 -1
- package/dist/types/plugin.d.cts +14 -2
- package/dist/types/plugin.d.cts.map +1 -0
- package/dist/types/plugin.d.mts +14 -2
- package/dist/types/plugin.d.mts.map +1 -0
- package/dist/types/plugin.mjs +0 -2
- package/package.json +4 -4
- package/dist/helpers-B15z10jN.mjs +0 -1
- package/dist/helpers-LF26RHol.cjs +0 -0
- package/dist/index-9iG2qHLe.d.mts +0 -1
- package/dist/index-D4ELpJXS.d.cts +0 -1
- package/dist/index-D6CnpA_r.d.cts +0 -1
- package/dist/index-DL0uimUT.d.mts +0 -1
- package/dist/plugin-BxRKtP9l.d.cts +0 -14
- package/dist/plugin-BxRKtP9l.d.cts.map +0 -1
- package/dist/plugin-DdAwfETN.d.mts +0 -14
- package/dist/plugin-DdAwfETN.d.mts.map +0 -1
- package/dist/plugin-ifZVa20V.mjs +0 -1
- package/dist/plugin-pBKbb5K9.cjs +0 -0
- package/dist/types-U3zd8PTP.mjs +0 -1
- package/dist/types-o3zWarRp.cjs +0 -0
- package/dist/unplugin-Ch-6ZCFt.d.mts +0 -8
- package/dist/unplugin-Ch-6ZCFt.d.mts.map +0 -1
- package/dist/unplugin-Cs7W7uLq.mjs +0 -11
- package/dist/unplugin-Cs7W7uLq.mjs.map +0 -1
- package/dist/unplugin-mL4V2eef.d.cts +0 -8
- package/dist/unplugin-mL4V2eef.d.cts.map +0 -1
- package/dist/unplugin-ve0KV5ja.cjs +0 -16
|
@@ -0,0 +1,29 @@
|
|
|
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;
|
package/dist/helpers/index.cjs
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
const
|
|
2
|
-
require('../helpers-LF26RHol.cjs');
|
|
1
|
+
const require_helpers_unplugin = require('./unplugin.cjs');
|
|
3
2
|
|
|
4
|
-
exports.createWebpackPlugin =
|
|
3
|
+
exports.createWebpackPlugin = require_helpers_unplugin.createWebpackPlugin;
|
package/dist/helpers/index.d.cts
CHANGED
package/dist/helpers/index.d.mts
CHANGED
package/dist/helpers/index.mjs
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
let powerlines_lib_unplugin = require("powerlines/lib/unplugin");
|
|
3
|
+
let unplugin = require("unplugin");
|
|
2
4
|
|
|
3
|
-
|
|
5
|
+
//#region src/helpers/unplugin.ts
|
|
6
|
+
function createWebpackPlugin(context) {
|
|
7
|
+
return (0, unplugin.createWebpackPlugin)((0, powerlines_lib_unplugin.createUnplugin)(context))({});
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
exports.createWebpackPlugin = createWebpackPlugin;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
import "../plugin
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { WebpackPluginContext } from "../types/plugin.cjs";
|
|
2
|
+
import * as webpack0 from "webpack";
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/unplugin.d.ts
|
|
5
|
+
declare function createWebpackPlugin(context: WebpackPluginContext): webpack0.WebpackPluginInstance;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { createWebpackPlugin };
|
|
8
|
+
//# sourceMappingURL=unplugin.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unplugin.d.cts","names":[],"sources":["../../src/helpers/unplugin.ts"],"sourcesContent":[],"mappings":";;;;iBAsBgB,mBAAA,UAA6B,uBAAoB,QAAA,CAAA"}
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
import "../plugin
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { WebpackPluginContext } from "../types/plugin.mjs";
|
|
2
|
+
import * as webpack0 from "webpack";
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/unplugin.d.ts
|
|
5
|
+
declare function createWebpackPlugin(context: WebpackPluginContext): webpack0.WebpackPluginInstance;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { createWebpackPlugin };
|
|
8
|
+
//# sourceMappingURL=unplugin.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unplugin.d.mts","names":[],"sources":["../../src/helpers/unplugin.ts"],"sourcesContent":[],"mappings":";;;;iBAsBgB,mBAAA,UAA6B,uBAAoB,QAAA,CAAA"}
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createUnplugin } from "powerlines/lib/unplugin";
|
|
2
|
+
import { createWebpackPlugin as createWebpackPlugin$1 } from "unplugin";
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
//#region src/helpers/unplugin.ts
|
|
5
|
+
function createWebpackPlugin(context) {
|
|
6
|
+
return createWebpackPlugin$1(createUnplugin(context))({});
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
export { createWebpackPlugin };
|
|
11
|
+
//# sourceMappingURL=unplugin.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
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/lib/unplugin\";\nimport { createWebpackPlugin as createWebpackUnplugin } from \"unplugin\";\nimport { WebpackPluginContext } from \"../types/plugin\";\n\nexport function createWebpackPlugin(context: WebpackPluginContext) {\n return createWebpackUnplugin(createUnplugin(context))({});\n}\n"],"mappings":";;;;AAsBA,SAAgB,oBAAoB,SAA+B;AACjE,QAAOA,sBAAsB,eAAe,QAAQ,CAAC,CAAC,EAAE,CAAC"}
|
package/dist/index.cjs
CHANGED
|
@@ -1,40 +1,12 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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-ve0KV5ja.cjs');
|
|
30
|
-
require('./helpers-LF26RHol.cjs');
|
|
31
|
-
require('./plugin-pBKbb5K9.cjs');
|
|
32
|
-
require('./types-o3zWarRp.cjs');
|
|
2
|
+
const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
|
|
3
|
+
const require_helpers_unplugin = require('./helpers/unplugin.cjs');
|
|
4
|
+
require('./helpers/index.cjs');
|
|
33
5
|
let defu = require("defu");
|
|
34
|
-
defu = __toESM(defu);
|
|
6
|
+
defu = require_rolldown_runtime.__toESM(defu);
|
|
35
7
|
let powerlines_lib_build_webpack = require("powerlines/lib/build/webpack");
|
|
36
8
|
let webpack = require("webpack");
|
|
37
|
-
webpack = __toESM(webpack);
|
|
9
|
+
webpack = require_rolldown_runtime.__toESM(webpack);
|
|
38
10
|
|
|
39
11
|
//#region src/index.ts
|
|
40
12
|
/**
|
|
@@ -54,14 +26,13 @@ const plugin = (options = {}) => {
|
|
|
54
26
|
(0, webpack.default)((0, defu.default)({ entry: this.entry.reduce((ret, entry) => {
|
|
55
27
|
ret[entry.output || entry.name || entry.file] = entry.file;
|
|
56
28
|
return ret;
|
|
57
|
-
}, {}) }, (0, powerlines_lib_build_webpack.extractWebpackConfig)(this), { plugins: [
|
|
29
|
+
}, {}) }, (0, powerlines_lib_build_webpack.extractWebpackConfig)(this), { plugins: [require_helpers_unplugin.createWebpackPlugin(this)] }));
|
|
58
30
|
}
|
|
59
31
|
};
|
|
60
32
|
};
|
|
61
33
|
var src_default = plugin;
|
|
62
34
|
|
|
63
35
|
//#endregion
|
|
64
|
-
exports.
|
|
65
|
-
exports.createWebpackPlugin = require_unplugin.createWebpackPlugin;
|
|
36
|
+
exports.createWebpackPlugin = require_helpers_unplugin.createWebpackPlugin;
|
|
66
37
|
exports.default = src_default;
|
|
67
38
|
exports.plugin = plugin;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import "./index
|
|
4
|
-
import "./index
|
|
1
|
+
import { WebpackPluginContext, WebpackPluginOptions, WebpackPluginResolvedConfig, __ΩWebpackPluginContext, __ΩWebpackPluginOptions, __ΩWebpackPluginResolvedConfig } from "./types/plugin.cjs";
|
|
2
|
+
import { createWebpackPlugin } from "./helpers/unplugin.cjs";
|
|
3
|
+
import "./helpers/index.cjs";
|
|
4
|
+
import "./types/index.cjs";
|
|
5
5
|
import { Plugin } from "powerlines/types/plugin";
|
|
6
6
|
|
|
7
7
|
//#region src/index.d.ts
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import "./index
|
|
4
|
-
import "./index
|
|
1
|
+
import { WebpackPluginContext, WebpackPluginOptions, WebpackPluginResolvedConfig, __ΩWebpackPluginContext, __ΩWebpackPluginOptions, __ΩWebpackPluginResolvedConfig } from "./types/plugin.mjs";
|
|
2
|
+
import { createWebpackPlugin } from "./helpers/unplugin.mjs";
|
|
3
|
+
import "./helpers/index.mjs";
|
|
4
|
+
import "./types/index.mjs";
|
|
5
5
|
import { Plugin } from "powerlines/types/plugin";
|
|
6
6
|
|
|
7
7
|
//#region src/index.d.ts
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./helpers
|
|
3
|
-
import "./plugin-ifZVa20V.mjs";
|
|
4
|
-
import "./types-U3zd8PTP.mjs";
|
|
1
|
+
import { createWebpackPlugin } from "./helpers/unplugin.mjs";
|
|
2
|
+
import "./helpers/index.mjs";
|
|
5
3
|
import defu from "defu";
|
|
6
4
|
import { extractWebpackConfig } from "powerlines/lib/build/webpack";
|
|
7
5
|
import build from "webpack";
|
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 defu from \"defu\";\nimport { extractWebpackConfig } from \"powerlines/lib/build/webpack\";\nimport { WebpackUserConfig } from \"powerlines/types/config\";\nimport { Plugin } from \"powerlines/types/plugin\";\nimport build from \"webpack\";\nimport { createWebpackPlugin } from \"./helpers/unplugin\";\nimport { WebpackPluginContext, WebpackPluginOptions } 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 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 build: {\n ...options,\n variant: \"webpack\"\n }\n } as Partial<WebpackUserConfig>;\n },\n async build() {\n build(\n defu(\n {\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 },\n extractWebpackConfig(this),\n {\n plugins: [createWebpackPlugin(this)]\n }\n )\n );\n }\n };\n};\n\nexport default plugin;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport defu from \"defu\";\nimport { extractWebpackConfig } from \"powerlines/lib/build/webpack\";\nimport { WebpackUserConfig } from \"powerlines/types/config\";\nimport { Plugin } from \"powerlines/types/plugin\";\nimport build from \"webpack\";\nimport { createWebpackPlugin } from \"./helpers/unplugin\";\nimport { WebpackPluginContext, WebpackPluginOptions } 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 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 build: {\n ...options,\n variant: \"webpack\"\n }\n } as Partial<WebpackUserConfig>;\n },\n async build() {\n build(\n defu(\n {\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 },\n extractWebpackConfig(this),\n {\n plugins: [createWebpackPlugin(this)]\n }\n )\n );\n }\n };\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;AAgCA,MAAa,UAGX,UAAgC,EAAE,KACb;AACrB,QAAO;EACL,MAAM;EACN,SAAS;AACP,QAAK,MACH,6EACD;AAED,UAAO,EACL,OAAO;IACL,GAAG;IACH,SAAS;IACV,EACF;;EAEH,MAAM,QAAQ;AACZ,SACE,KACE,EACE,OAAO,KAAK,MAAM,QACf,KAAK,UAAU;AACd,QAAI,MAAM,UAAU,MAAM,QAAQ,MAAM,QAAQ,MAAM;AAEtD,WAAO;MAET,EAAE,CACH,EACF,EACD,qBAAqB,KAAK,EAC1B,EACE,SAAS,CAAC,oBAAoB,KAAK,CAAC,EACrC,CACF,CACF;;EAEJ;;AAGH,kBAAe"}
|
package/dist/types/index.cjs
CHANGED
package/dist/types/index.d.cts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../index-D4ELpJXS.cjs";
|
|
1
|
+
import { WebpackPluginContext, WebpackPluginOptions, WebpackPluginResolvedConfig, __ΩWebpackPluginContext, __ΩWebpackPluginOptions, __ΩWebpackPluginResolvedConfig } from "./plugin.cjs";
|
|
3
2
|
export { WebpackPluginContext, WebpackPluginOptions, WebpackPluginResolvedConfig, __ΩWebpackPluginContext, __ΩWebpackPluginOptions, __ΩWebpackPluginResolvedConfig };
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../index-9iG2qHLe.mjs";
|
|
1
|
+
import { WebpackPluginContext, WebpackPluginOptions, WebpackPluginResolvedConfig, __ΩWebpackPluginContext, __ΩWebpackPluginOptions, __ΩWebpackPluginResolvedConfig } from "./plugin.mjs";
|
|
3
2
|
export { WebpackPluginContext, WebpackPluginOptions, WebpackPluginResolvedConfig, __ΩWebpackPluginContext, __ΩWebpackPluginOptions, __ΩWebpackPluginResolvedConfig };
|
package/dist/types/index.mjs
CHANGED
package/dist/types/plugin.cjs
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require('../plugin-pBKbb5K9.cjs');
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,2 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { WebpackBuildConfig } from "powerlines/types/build";
|
|
2
|
+
import { PluginContext } from "powerlines/types/context";
|
|
3
|
+
import { WebpackResolvedConfig } from "powerlines/types/resolved";
|
|
4
|
+
|
|
5
|
+
//#region src/types/plugin.d.ts
|
|
6
|
+
type WebpackPluginOptions = Partial<WebpackBuildConfig>;
|
|
7
|
+
type WebpackPluginResolvedConfig = WebpackResolvedConfig;
|
|
8
|
+
type WebpackPluginContext<TResolvedConfig extends WebpackPluginResolvedConfig = WebpackPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
9
|
+
declare type __ΩWebpackPluginOptions = any[];
|
|
10
|
+
declare type __ΩWebpackPluginResolvedConfig = any[];
|
|
11
|
+
declare type __ΩWebpackPluginContext = any[];
|
|
12
|
+
//#endregion
|
|
13
|
+
export { WebpackPluginContext, WebpackPluginOptions, WebpackPluginResolvedConfig, __ΩWebpackPluginContext, __ΩWebpackPluginOptions, __ΩWebpackPluginResolvedConfig };
|
|
14
|
+
//# sourceMappingURL=plugin.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;KAsBY,oBAAA,GAAuB,QAAQ;KAE/B,2BAAA,GAA8B;AAF9B,KAIA,oBAJoB,CAAA,wBAKN,2BALgB,GAMtC,2BANsC,CAAA,GAOtC,aAPsC,CAOxB,eAPwB,CAAA;AAE9B,uCAA8B,GAAA,EAAA;AAE9B,8CAAoB,GAAA,EAAA;AACN,uCAAA,GAAA,EAAA"}
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,2 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { WebpackBuildConfig } from "powerlines/types/build";
|
|
2
|
+
import { PluginContext } from "powerlines/types/context";
|
|
3
|
+
import { WebpackResolvedConfig } from "powerlines/types/resolved";
|
|
4
|
+
|
|
5
|
+
//#region src/types/plugin.d.ts
|
|
6
|
+
type WebpackPluginOptions = Partial<WebpackBuildConfig>;
|
|
7
|
+
type WebpackPluginResolvedConfig = WebpackResolvedConfig;
|
|
8
|
+
type WebpackPluginContext<TResolvedConfig extends WebpackPluginResolvedConfig = WebpackPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
9
|
+
declare type __ΩWebpackPluginOptions = any[];
|
|
10
|
+
declare type __ΩWebpackPluginResolvedConfig = any[];
|
|
11
|
+
declare type __ΩWebpackPluginContext = any[];
|
|
12
|
+
//#endregion
|
|
13
|
+
export { WebpackPluginContext, WebpackPluginOptions, WebpackPluginResolvedConfig, __ΩWebpackPluginContext, __ΩWebpackPluginOptions, __ΩWebpackPluginResolvedConfig };
|
|
14
|
+
//# sourceMappingURL=plugin.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;KAsBY,oBAAA,GAAuB,QAAQ;KAE/B,2BAAA,GAA8B;AAF9B,KAIA,oBAJoB,CAAA,wBAKN,2BALgB,GAMtC,2BANsC,CAAA,GAOtC,aAPsC,CAOxB,eAPwB,CAAA;AAE9B,uCAA8B,GAAA,EAAA;AAE9B,8CAAoB,GAAA,EAAA;AACN,uCAAA,GAAA,EAAA"}
|
package/dist/types/plugin.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-webpack",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.263",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin to build projects using Webpack.",
|
|
6
6
|
"repository": {
|
|
@@ -118,15 +118,15 @@
|
|
|
118
118
|
"keywords": ["webpack", "powerlines", "storm-software", "powerlines-plugin"],
|
|
119
119
|
"dependencies": {
|
|
120
120
|
"defu": "^6.1.4",
|
|
121
|
-
"powerlines": "^0.38.
|
|
121
|
+
"powerlines": "^0.38.21",
|
|
122
122
|
"unplugin": "3.0.0-beta.3",
|
|
123
123
|
"webpack": "^5.104.1"
|
|
124
124
|
},
|
|
125
125
|
"devDependencies": {
|
|
126
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
126
|
+
"@powerlines/plugin-plugin": "^0.12.205",
|
|
127
127
|
"@types/node": "^24.10.9"
|
|
128
128
|
},
|
|
129
129
|
"publishConfig": { "access": "public" },
|
|
130
130
|
"types": "./dist/index.d.cts",
|
|
131
|
-
"gitHead": "
|
|
131
|
+
"gitHead": "6000a15bf3fbc1b7eaaf967088c68eef9949786a"
|
|
132
132
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { WebpackBuildConfig } from "powerlines/types/build";
|
|
2
|
-
import { PluginContext } from "powerlines/types/context";
|
|
3
|
-
import { WebpackResolvedConfig } from "powerlines/types/resolved";
|
|
4
|
-
|
|
5
|
-
//#region src/types/plugin.d.ts
|
|
6
|
-
type WebpackPluginOptions = Partial<WebpackBuildConfig>;
|
|
7
|
-
type WebpackPluginResolvedConfig = WebpackResolvedConfig;
|
|
8
|
-
type WebpackPluginContext<TResolvedConfig extends WebpackPluginResolvedConfig = WebpackPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
9
|
-
declare type __ΩWebpackPluginOptions = any[];
|
|
10
|
-
declare type __ΩWebpackPluginResolvedConfig = any[];
|
|
11
|
-
declare type __ΩWebpackPluginContext = any[];
|
|
12
|
-
//#endregion
|
|
13
|
-
export { __ΩWebpackPluginOptions as a, __ΩWebpackPluginContext as i, WebpackPluginOptions as n, __ΩWebpackPluginResolvedConfig as o, WebpackPluginResolvedConfig as r, WebpackPluginContext as t };
|
|
14
|
-
//# sourceMappingURL=plugin-BxRKtP9l.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-BxRKtP9l.d.cts","names":[],"sources":["../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;KAsBY,oBAAA,GAAuB,QAAQ;KAE/B,2BAAA,GAA8B;AAF9B,KAIA,oBAJoB,CAAA,wBAKN,2BALgB,GAMtC,2BANsC,CAAA,GAOtC,aAPsC,CAOxB,eAPwB,CAAA;AAE9B,uCAA8B,GAAA,EAAA;AAE9B,8CAAoB,GAAA,EAAA;AACN,uCAAA,GAAA,EAAA"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { WebpackBuildConfig } from "powerlines/types/build";
|
|
2
|
-
import { PluginContext } from "powerlines/types/context";
|
|
3
|
-
import { WebpackResolvedConfig } from "powerlines/types/resolved";
|
|
4
|
-
|
|
5
|
-
//#region src/types/plugin.d.ts
|
|
6
|
-
type WebpackPluginOptions = Partial<WebpackBuildConfig>;
|
|
7
|
-
type WebpackPluginResolvedConfig = WebpackResolvedConfig;
|
|
8
|
-
type WebpackPluginContext<TResolvedConfig extends WebpackPluginResolvedConfig = WebpackPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
9
|
-
declare type __ΩWebpackPluginOptions = any[];
|
|
10
|
-
declare type __ΩWebpackPluginResolvedConfig = any[];
|
|
11
|
-
declare type __ΩWebpackPluginContext = any[];
|
|
12
|
-
//#endregion
|
|
13
|
-
export { __ΩWebpackPluginOptions as a, __ΩWebpackPluginContext as i, WebpackPluginOptions as n, __ΩWebpackPluginResolvedConfig as o, WebpackPluginResolvedConfig as r, WebpackPluginContext as t };
|
|
14
|
-
//# sourceMappingURL=plugin-DdAwfETN.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-DdAwfETN.d.mts","names":[],"sources":["../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;KAsBY,oBAAA,GAAuB,QAAQ;KAE/B,2BAAA,GAA8B;AAF9B,KAIA,oBAJoB,CAAA,wBAKN,2BALgB,GAMtC,2BANsC,CAAA,GAOtC,aAPsC,CAOxB,eAPwB,CAAA;AAE9B,uCAA8B,GAAA,EAAA;AAE9B,8CAAoB,GAAA,EAAA;AACN,uCAAA,GAAA,EAAA"}
|
package/dist/plugin-ifZVa20V.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/plugin-pBKbb5K9.cjs
DELETED
|
File without changes
|
package/dist/types-U3zd8PTP.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/types-o3zWarRp.cjs
DELETED
|
File without changes
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { t as WebpackPluginContext } from "./plugin-DdAwfETN.mjs";
|
|
2
|
-
import * as webpack0 from "webpack";
|
|
3
|
-
|
|
4
|
-
//#region src/helpers/unplugin.d.ts
|
|
5
|
-
declare function createWebpackPlugin(context: WebpackPluginContext): webpack0.WebpackPluginInstance;
|
|
6
|
-
//#endregion
|
|
7
|
-
export { createWebpackPlugin as t };
|
|
8
|
-
//# sourceMappingURL=unplugin-Ch-6ZCFt.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unplugin-Ch-6ZCFt.d.mts","names":[],"sources":["../src/helpers/unplugin.ts"],"sourcesContent":[],"mappings":";;;;iBAsBgB,mBAAA,UAA6B,uBAAoB,QAAA,CAAA"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { createUnplugin } from "powerlines/lib/unplugin";
|
|
2
|
-
import { createWebpackPlugin } from "unplugin";
|
|
3
|
-
|
|
4
|
-
//#region src/helpers/unplugin.ts
|
|
5
|
-
function createWebpackPlugin$1(context) {
|
|
6
|
-
return createWebpackPlugin(createUnplugin(context))({});
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
//#endregion
|
|
10
|
-
export { createWebpackPlugin$1 as t };
|
|
11
|
-
//# sourceMappingURL=unplugin-Cs7W7uLq.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unplugin-Cs7W7uLq.mjs","names":["createWebpackPlugin","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/lib/unplugin\";\nimport { createWebpackPlugin as createWebpackUnplugin } from \"unplugin\";\nimport { WebpackPluginContext } from \"../types/plugin\";\n\nexport function createWebpackPlugin(context: WebpackPluginContext) {\n return createWebpackUnplugin(createUnplugin(context))({});\n}\n"],"mappings":";;;;AAsBA,SAAgBA,sBAAoB,SAA+B;AACjE,QAAOC,oBAAsB,eAAe,QAAQ,CAAC,CAAC,EAAE,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { t as WebpackPluginContext } from "./plugin-BxRKtP9l.cjs";
|
|
2
|
-
import * as webpack0 from "webpack";
|
|
3
|
-
|
|
4
|
-
//#region src/helpers/unplugin.d.ts
|
|
5
|
-
declare function createWebpackPlugin(context: WebpackPluginContext): webpack0.WebpackPluginInstance;
|
|
6
|
-
//#endregion
|
|
7
|
-
export { createWebpackPlugin as t };
|
|
8
|
-
//# sourceMappingURL=unplugin-mL4V2eef.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unplugin-mL4V2eef.d.cts","names":[],"sources":["../src/helpers/unplugin.ts"],"sourcesContent":[],"mappings":";;;;iBAsBgB,mBAAA,UAA6B,uBAAoB,QAAA,CAAA"}
|
|
@@ -1,16 +0,0 @@
|
|
|
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 createWebpackPlugin(context) {
|
|
7
|
-
return (0, unplugin.createWebpackPlugin)((0, powerlines_lib_unplugin.createUnplugin)(context))({});
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
//#endregion
|
|
11
|
-
Object.defineProperty(exports, 'createWebpackPlugin', {
|
|
12
|
-
enumerable: true,
|
|
13
|
-
get: function () {
|
|
14
|
-
return createWebpackPlugin;
|
|
15
|
-
}
|
|
16
|
-
});
|