@powerlines/plugin-webpack 0.5.491 → 0.5.493

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.
@@ -1 +1 @@
1
- {"version":3,"file":"build-A0V1d711.d.mts","names":[],"sources":["../src/types/build.ts"],"mappings":";;;KAoBY,cAAA,GAAiB,IAAA,CAC3B,aAAA;AAAA"}
1
+ {"version":3,"file":"build-A0V1d711.d.mts","names":[],"sources":["../src/types/build.ts"],"mappings":";;;KAoBY,cAAA,GAAiB,IAAI,CAC/B,aAAA;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"build-h6ZNzERR.d.cts","names":[],"sources":["../src/types/build.ts"],"mappings":";;;KAoBY,cAAA,GAAiB,IAAA,CAC3B,aAAA;AAAA"}
1
+ {"version":3,"file":"build-h6ZNzERR.d.cts","names":[],"sources":["../src/types/build.ts"],"mappings":";;;KAoBY,cAAA,GAAiB,IAAI,CAC/B,aAAA;AAAA"}
package/dist/index.cjs CHANGED
@@ -26,12 +26,11 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  }) : target, mod));
27
27
 
28
28
  //#endregion
29
- require('./types/index.cjs');
30
29
  let _powerlines_core = require("@powerlines/core");
31
- let _powerlines_core_plugin_utils = require("@powerlines/core/plugin-utils");
32
30
  let _powerlines_unplugin_webpack = require("@powerlines/unplugin/webpack");
33
31
  let defu = require("defu");
34
32
  defu = __toESM(defu, 1);
33
+ let powerlines_plugin_utils = require("powerlines/plugin-utils");
35
34
  let unplugin = require("unplugin");
36
35
  let webpack = require("webpack");
37
36
  webpack = __toESM(webpack, 1);
@@ -64,7 +63,7 @@ const plugin = (options = {}) => {
64
63
  });
65
64
  this.debug({
66
65
  meta: { category: "config" },
67
- message: `Resolved Webpack configuration: \n${(0, _powerlines_core_plugin_utils.formatConfig)(options)}`
66
+ message: `Resolved Webpack configuration: \n${(0, powerlines_plugin_utils.formatConfig)(options)}`
68
67
  });
69
68
  (0, webpack.default)(options);
70
69
  }
package/dist/index.d.cts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { WebpackPluginContext, WebpackPluginOptions, WebpackPluginResolvedConfig, WebpackPluginUserConfig, __ΩWebpackPluginContext, __ΩWebpackPluginOptions, __ΩWebpackPluginResolvedConfig, __ΩWebpackPluginUserConfig } from "./types/plugin.cjs";
2
- import { Plugin } from "@powerlines/core";
2
+ import { Plugin } from "powerlines";
3
3
 
4
4
  //#region src/index.d.ts
5
- declare module "@powerlines/core" {
5
+ declare module "powerlines" {
6
6
  interface Config {
7
7
  webpack?: WebpackPluginOptions;
8
8
  }
@@ -12,5 +12,5 @@ declare module "@powerlines/core" {
12
12
  */
13
13
  declare const plugin: <TContext extends WebpackPluginContext = WebpackPluginContext>(options?: WebpackPluginOptions) => Plugin<TContext>;
14
14
  //#endregion
15
- export { WebpackPluginContext, WebpackPluginOptions, WebpackPluginResolvedConfig, WebpackPluginUserConfig, __ΩWebpackPluginContext, __ΩWebpackPluginOptions, __ΩWebpackPluginResolvedConfig, __ΩWebpackPluginUserConfig, plugin as default, plugin };
15
+ export { type WebpackPluginContext, type WebpackPluginOptions, type WebpackPluginResolvedConfig, type WebpackPluginUserConfig, type __ΩWebpackPluginContext, type __ΩWebpackPluginOptions, type __ΩWebpackPluginResolvedConfig, type __ΩWebpackPluginUserConfig, plugin as default, plugin };
16
16
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;YAkCY,MAAA;IACR,OAAA,GAAU,oBAAoB;EAAA;AAAA;;;;cAOrB,MAAA,oBACM,oBAAA,GAAuB,oBAAA,EAExC,OAAA,GAAS,oBAAA,KACR,MAAA,CAAO,QAAA"}
package/dist/index.d.mts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { WebpackPluginContext, WebpackPluginOptions, WebpackPluginResolvedConfig, WebpackPluginUserConfig, __ΩWebpackPluginContext, __ΩWebpackPluginOptions, __ΩWebpackPluginResolvedConfig, __ΩWebpackPluginUserConfig } from "./types/plugin.mjs";
2
- import { Plugin } from "@powerlines/core";
2
+ import { Plugin } from "powerlines";
3
3
 
4
4
  //#region src/index.d.ts
5
- declare module "@powerlines/core" {
5
+ declare module "powerlines" {
6
6
  interface Config {
7
7
  webpack?: WebpackPluginOptions;
8
8
  }
@@ -12,5 +12,5 @@ declare module "@powerlines/core" {
12
12
  */
13
13
  declare const plugin: <TContext extends WebpackPluginContext = WebpackPluginContext>(options?: WebpackPluginOptions) => Plugin<TContext>;
14
14
  //#endregion
15
- export { WebpackPluginContext, WebpackPluginOptions, WebpackPluginResolvedConfig, WebpackPluginUserConfig, __ΩWebpackPluginContext, __ΩWebpackPluginOptions, __ΩWebpackPluginResolvedConfig, __ΩWebpackPluginUserConfig, plugin as default, plugin };
15
+ export { type WebpackPluginContext, type WebpackPluginOptions, type WebpackPluginResolvedConfig, type WebpackPluginUserConfig, type __ΩWebpackPluginContext, type __ΩWebpackPluginOptions, type __ΩWebpackPluginResolvedConfig, type __ΩWebpackPluginUserConfig, plugin as default, plugin };
16
16
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;YAkCY,MAAA;IACR,OAAA,GAAU,oBAAoB;EAAA;AAAA;;;;cAOrB,MAAA,oBACM,oBAAA,GAAuB,oBAAA,EAExC,OAAA,GAAS,oBAAA,KACR,MAAA,CAAO,QAAA"}
package/dist/index.mjs CHANGED
@@ -1,8 +1,7 @@
1
- import "./types/index.mjs";
2
1
  import { createUnplugin } from "@powerlines/core";
3
- import { formatConfig } from "@powerlines/core/plugin-utils";
4
2
  import { resolveOptions } from "@powerlines/unplugin/webpack";
5
3
  import defu from "defu";
4
+ import { formatConfig } from "powerlines/plugin-utils";
6
5
  import { createWebpackPlugin } from "unplugin";
7
6
  import webpack from "webpack";
8
7
 
@@ -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 { 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"}
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 } from \"@powerlines/core\";\nimport { resolveOptions } from \"@powerlines/unplugin/webpack\";\nimport defu from \"defu\";\nimport type { Plugin } from \"powerlines\";\nimport { formatConfig } from \"powerlines/plugin-utils\";\nimport { createWebpackPlugin } from \"unplugin\";\nimport type { Configuration } from \"webpack\";\nimport webpack from \"webpack\";\nimport type {\n WebpackPluginContext,\n WebpackPluginOptions\n} from \"./types/plugin\";\n\nexport type * from \"./types\";\n\ndeclare module \"powerlines\" {\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":";;;;;;;;;;;AA0CA,MAAa,UAGX,UAAgC,CAAC,MACZ;CACrB,OAAO;EACL,MAAM;EACN,SAAS;GACP,KAAK,MACH,4EACF;GAEA,OAAO,EACL,SAAS,EACP,GAAG,QACL,EACF;EACF;EACA,MAAM,QAAQ;GACZ,KAAK,MAAM,mCAAmC;GAE9C,MAAM,WAAW,eAAe,IAAI;GACpC,MAAM,UAAU,KAAK,KAAK,OAAO,SAAS;IACxC,GAAG;IACH,QAAQ;IACR,OAAO,KAAK,MAAM,QACf,KAAK,UAAU;KACd,IAAI,MAAM,UAAU,MAAM,QAAQ,MAAM,QAAQ,MAAM;KAEtD,OAAO;IACT,GACA,CAAC,CACH;IACA,SAAS,CACP,oBACE,eAAe,MAAM;KACnB,oBAAoB;KACpB,MAAM;IACR,CAAC,CACH,EAAE,CACJ;GACF,CAAC;GAED,KAAK,MAAM;IACT,MAAM,EACJ,UAAU,SACZ;IACA,SAAS,qCAAqC,aAAa,OAAO;GACpE,CAAC;GAED,QAAQ,OAAO;EACjB;CACF;AACF"}
@@ -0,0 +1 @@
1
+ require('./plugin.cjs');
@@ -1 +1,3 @@
1
+ import "./plugin.mjs";
2
+
1
3
  export { };
@@ -1,5 +1,5 @@
1
1
  import { t as WebpackOptions } from "../build-h6ZNzERR.cjs";
2
- import { PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core";
2
+ import { PluginContext, ResolvedConfig, UserConfig } from "powerlines";
3
3
 
4
4
  //#region src/types/plugin.d.ts
5
5
  type WebpackPluginOptions = Partial<WebpackOptions>;
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;KAqBY,oBAAA,GAAuB,OAAO,CAAC,cAAA;AAAA,UAE1B,uBAAA,SAAgC,UAAU;EACzD,OAAA,GAAU,oBAAA;AAAA;AAAA,UAGK,2BAAA,SAAoC,cAAc;EACjE,OAAA,EAAS,cAAA;AAAA;AAAA,KAGC,oBAAA,yBACc,2BAAA,GACtB,2BAAA,IACA,aAAA,CAAc,eAAA;AAAA"}
@@ -1,5 +1,5 @@
1
1
  import { t as WebpackOptions } from "../build-A0V1d711.mjs";
2
- import { PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core";
2
+ import { PluginContext, ResolvedConfig, UserConfig } from "powerlines";
3
3
 
4
4
  //#region src/types/plugin.d.ts
5
5
  type WebpackPluginOptions = Partial<WebpackOptions>;
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;KAqBY,oBAAA,GAAuB,OAAO,CAAC,cAAA;AAAA,UAE1B,uBAAA,SAAgC,UAAU;EACzD,OAAA,GAAU,oBAAA;AAAA;AAAA,UAGK,2BAAA,SAAoC,cAAc;EACjE,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.491",
3
+ "version": "0.5.493",
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"],
@@ -73,16 +73,17 @@
73
73
  "typings": "dist/index.d.mts",
74
74
  "files": ["dist"],
75
75
  "dependencies": {
76
- "@powerlines/core": "^0.15.17",
77
- "@powerlines/unplugin": "^0.0.32",
76
+ "@powerlines/core": "^0.15.19",
77
+ "@powerlines/unplugin": "^0.0.34",
78
78
  "@stryke/helpers": "^0.10.16",
79
79
  "@stryke/path": "^0.29.3",
80
80
  "defu": "^6.1.7",
81
+ "powerlines": "^0.47.41",
81
82
  "unplugin": "^3.0.0"
82
83
  },
83
84
  "devDependencies": { "@types/node": "^25.8.0", "webpack": "^5.106.2" },
84
85
  "peerDependencies": { "webpack": ">=5.101.0" },
85
86
  "peerDependenciesMeta": { "webpack": { "optional": false } },
86
87
  "publishConfig": { "access": "public" },
87
- "gitHead": "defec65066e27532bba43fc6c8ef65ccb74d5877"
88
+ "gitHead": "b5c7361d0ca942652f98baf11488435c7918fd65"
88
89
  }