@powerlines/plugin-webpack 0.5.660 → 0.5.662

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/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  //#region \0rolldown/runtime.js
3
3
  var __create = Object.create;
4
4
  var __defProp = Object.defineProperty;
@@ -71,5 +71,4 @@ const plugin = (options = {}) => {
71
71
  };
72
72
 
73
73
  //#endregion
74
- exports.default = plugin;
75
74
  exports.plugin = plugin;
package/dist/index.d.cts CHANGED
@@ -12,5 +12,5 @@ declare module "powerlines" {
12
12
  */
13
13
  declare const plugin: <TContext extends WebpackPluginContext = WebpackPluginContext>(options?: WebpackPluginOptions) => Plugin<TContext>;
14
14
  //#endregion
15
- export { type WebpackPluginContext, type WebpackPluginOptions, type WebpackPluginResolvedConfig, type WebpackPluginUserConfig, plugin as default, plugin };
15
+ export { type WebpackPluginContext, type WebpackPluginOptions, type WebpackPluginResolvedConfig, type WebpackPluginUserConfig, plugin };
16
16
  //# sourceMappingURL=index.d.cts.map
package/dist/index.d.mts CHANGED
@@ -12,5 +12,5 @@ declare module "powerlines" {
12
12
  */
13
13
  declare const plugin: <TContext extends WebpackPluginContext = WebpackPluginContext>(options?: WebpackPluginOptions) => Plugin<TContext>;
14
14
  //#endregion
15
- export { type WebpackPluginContext, type WebpackPluginOptions, type WebpackPluginResolvedConfig, type WebpackPluginUserConfig, plugin as default, plugin };
15
+ export { type WebpackPluginContext, type WebpackPluginOptions, type WebpackPluginResolvedConfig, type WebpackPluginUserConfig, plugin };
16
16
  //# sourceMappingURL=index.d.mts.map
package/dist/index.mjs CHANGED
@@ -41,5 +41,5 @@ const plugin = (options = {}) => {
41
41
  };
42
42
 
43
43
  //#endregion
44
- export { plugin as default, plugin };
44
+ export { plugin };
45
45
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["// @ts-nocheck\n/* -------------------------------------------------------------------\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":";;;;;;;;;;;AA2CA,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,CAAC,CAAC,CACJ;GACF,CAAC;GAED,KAAK,MAAM;IACT,MAAM,EACJ,UAAU,SACZ;IACA,SAAS,qCAAqC,aAAa,OAAO;GACpE,CAAC;GAED,QAAQ,OAAO;EACjB;CACF;AACF"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["// @ts-nocheck\n/* -------------------------------------------------------------------\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\n"],"mappings":";;;;;;;;;;;AA2CA,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,CAAC,CAAC,CACJ;GACF,CAAC;GAED,KAAK,MAAM;IACT,MAAM,EACJ,UAAU,SACZ;IACA,SAAS,qCAAqC,aAAa,OAAO;GACpE,CAAC;GAED,QAAQ,OAAO;EACjB;CACF;AACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-webpack",
3
- "version": "0.5.660",
3
+ "version": "0.5.662",
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"],
@@ -83,17 +83,17 @@
83
83
  "typings": "dist/index.d.mts",
84
84
  "files": ["dist"],
85
85
  "dependencies": {
86
- "@powerlines/core": "^0.48.127",
87
- "@powerlines/unplugin": "^0.0.175",
86
+ "@powerlines/core": "^0.48.129",
87
+ "@powerlines/unplugin": "^0.0.177",
88
88
  "@stryke/helpers": "^0.10.48",
89
89
  "@stryke/path": "^0.29.35",
90
90
  "defu": "^6.1.7",
91
- "powerlines": "^0.47.208",
91
+ "powerlines": "^0.47.210",
92
92
  "unplugin": "^3.3.0"
93
93
  },
94
94
  "devDependencies": { "@types/node": "^25.9.5", "webpack": "^5.109.2" },
95
95
  "peerDependencies": { "webpack": ">=5.101.0" },
96
96
  "peerDependenciesMeta": { "webpack": { "optional": false } },
97
97
  "publishConfig": { "access": "public" },
98
- "gitHead": "7f9a0df69c7021d02c29a0d0c0626465686566fa"
98
+ "gitHead": "4ee69b33975e2fa912d2c73700dc7e949f25b2d4"
99
99
  }