@powerlines/plugin-rspack 0.5.661 → 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;
@@ -67,5 +67,4 @@ const plugin = (options = {}) => {
67
67
  };
68
68
 
69
69
  //#endregion
70
- exports.default = plugin;
71
70
  exports.plugin = plugin;
package/dist/index.d.cts CHANGED
@@ -13,5 +13,5 @@ declare module "powerlines" {
13
13
  */
14
14
  declare const plugin: <TContext extends RspackPluginContext = RspackPluginContext>(options?: RspackPluginOptions) => Plugin<TContext>;
15
15
  //#endregion
16
- export { type RspackOptions, type RspackPluginContext, type RspackPluginOptions, type RspackPluginResolvedConfig, type RspackPluginUserConfig, plugin as default, plugin };
16
+ export { type RspackOptions, type RspackPluginContext, type RspackPluginOptions, type RspackPluginResolvedConfig, type RspackPluginUserConfig, plugin };
17
17
  //# sourceMappingURL=index.d.cts.map
package/dist/index.d.mts CHANGED
@@ -13,5 +13,5 @@ declare module "powerlines" {
13
13
  */
14
14
  declare const plugin: <TContext extends RspackPluginContext = RspackPluginContext>(options?: RspackPluginOptions) => Plugin<TContext>;
15
15
  //#endregion
16
- export { type RspackOptions, type RspackPluginContext, type RspackPluginOptions, type RspackPluginResolvedConfig, type RspackPluginUserConfig, plugin as default, plugin };
16
+ export { type RspackOptions, type RspackPluginContext, type RspackPluginOptions, type RspackPluginResolvedConfig, type RspackPluginUserConfig, plugin };
17
17
  //# sourceMappingURL=index.d.mts.map
package/dist/index.mjs CHANGED
@@ -38,5 +38,5 @@ const plugin = (options = {}) => {
38
38
  };
39
39
 
40
40
  //#endregion
41
- export { plugin as default, plugin };
41
+ export { plugin };
42
42
  //# 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/rspack\";\nimport { rspack as build, MultiRspackOptions } from \"@rspack/core\";\nimport defu from \"defu\";\nimport type { Plugin } from \"powerlines\";\nimport { formatConfig } from \"powerlines/plugin-utils\";\nimport { createRspackPlugin } from \"unplugin\";\nimport type { RspackPluginContext, RspackPluginOptions } from \"./types/plugin\";\n\nexport type * from \"./types\";\n\ndeclare module \"powerlines\" {\n interface Config {\n rspack?: RspackPluginOptions;\n }\n}\n\n/**\n * A Powerlines plugin to assist in developing other Powerlines plugins.\n */\nexport const plugin = <\n TContext extends RspackPluginContext = RspackPluginContext\n>(\n options: RspackPluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"rspack\",\n config() {\n this.debug(\n \"Providing default configuration for the Powerlines `rspack` build plugin.\"\n );\n\n return {\n build: {\n ...options,\n variant: \"rspack\"\n }\n };\n },\n async build() {\n this.debug(\"Starting Rspack build process...\");\n\n const options = 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 resolveOptions(this),\n {\n plugins: [\n createRspackPlugin(\n createUnplugin(this, {\n silenceHookLogging: true,\n name: \"rspack\"\n })\n )()\n ]\n }\n );\n\n this.debug({\n meta: {\n category: \"config\"\n },\n message: `Resolved Rspack configuration: \\n${formatConfig(options)}`\n });\n\n build([options] as MultiRspackOptions);\n }\n };\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;AAuCA,MAAa,UAGX,UAA+B,CAAC,MACX;CACrB,OAAO;EACL,MAAM;EACN,SAAS;GACP,KAAK,MACH,2EACF;GAEA,OAAO,EACL,OAAO;IACL,GAAG;IACH,SAAS;GACX,EACF;EACF;EACA,MAAM,QAAQ;GACZ,KAAK,MAAM,kCAAkC;GAE7C,MAAM,UAAU,KACd,EACE,OAAO,KAAK,MAAM,QACf,KAAK,UAAU;IACd,IAAI,MAAM,UAAU,MAAM,QAAQ,MAAM,QAAQ,MAAM;IAEtD,OAAO;GACT,GACA,CAAC,CACH,EACF,GACA,eAAe,IAAI,GACnB,EACE,SAAS,CACP,mBACE,eAAe,MAAM;IACnB,oBAAoB;IACpB,MAAM;GACR,CAAC,CACH,CAAC,CAAC,CACJ,EACF,CACF;GAEA,KAAK,MAAM;IACT,MAAM,EACJ,UAAU,SACZ;IACA,SAAS,oCAAoC,aAAa,OAAO;GACnE,CAAC;GAED,OAAM,CAAC,OAAO,CAAuB;EACvC;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/rspack\";\nimport { rspack as build, MultiRspackOptions } from \"@rspack/core\";\nimport defu from \"defu\";\nimport type { Plugin } from \"powerlines\";\nimport { formatConfig } from \"powerlines/plugin-utils\";\nimport { createRspackPlugin } from \"unplugin\";\nimport type { RspackPluginContext, RspackPluginOptions } from \"./types/plugin\";\n\nexport type * from \"./types\";\n\ndeclare module \"powerlines\" {\n interface Config {\n rspack?: RspackPluginOptions;\n }\n}\n\n/**\n * A Powerlines plugin to assist in developing other Powerlines plugins.\n */\nexport const plugin = <\n TContext extends RspackPluginContext = RspackPluginContext\n>(\n options: RspackPluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"rspack\",\n config() {\n this.debug(\n \"Providing default configuration for the Powerlines `rspack` build plugin.\"\n );\n\n return {\n build: {\n ...options,\n variant: \"rspack\"\n }\n };\n },\n async build() {\n this.debug(\"Starting Rspack build process...\");\n\n const options = 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 resolveOptions(this),\n {\n plugins: [\n createRspackPlugin(\n createUnplugin(this, {\n silenceHookLogging: true,\n name: \"rspack\"\n })\n )()\n ]\n }\n );\n\n this.debug({\n meta: {\n category: \"config\"\n },\n message: `Resolved Rspack configuration: \\n${formatConfig(options)}`\n });\n\n build([options] as MultiRspackOptions);\n }\n };\n};\n\n"],"mappings":";;;;;;;;;;;AAuCA,MAAa,UAGX,UAA+B,CAAC,MACX;CACrB,OAAO;EACL,MAAM;EACN,SAAS;GACP,KAAK,MACH,2EACF;GAEA,OAAO,EACL,OAAO;IACL,GAAG;IACH,SAAS;GACX,EACF;EACF;EACA,MAAM,QAAQ;GACZ,KAAK,MAAM,kCAAkC;GAE7C,MAAM,UAAU,KACd,EACE,OAAO,KAAK,MAAM,QACf,KAAK,UAAU;IACd,IAAI,MAAM,UAAU,MAAM,QAAQ,MAAM,QAAQ,MAAM;IAEtD,OAAO;GACT,GACA,CAAC,CACH,EACF,GACA,eAAe,IAAI,GACnB,EACE,SAAS,CACP,mBACE,eAAe,MAAM;IACnB,oBAAoB;IACpB,MAAM;GACR,CAAC,CACH,CAAC,CAAC,CACJ,EACF,CACF;GAEA,KAAK,MAAM;IACT,MAAM,EACJ,UAAU,SACZ;IACA,SAAS,oCAAoC,aAAa,OAAO;GACnE,CAAC;GAED,OAAM,CAAC,OAAO,CAAuB;EACvC;CACF;AACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-rspack",
3
- "version": "0.5.661",
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": ["rspack", "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.128",
87
- "@powerlines/unplugin": "^0.0.176",
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.209",
91
+ "powerlines": "^0.47.210",
92
92
  "unplugin": "^3.3.0"
93
93
  },
94
94
  "devDependencies": { "@rspack/core": "^1.7.12", "@types/node": "^25.9.5" },
95
95
  "peerDependencies": { "@rspack/core": ">=1.5.0" },
96
96
  "peerDependenciesMeta": { "@rspack/core": { "optional": false } },
97
97
  "publishConfig": { "access": "public" },
98
- "gitHead": "88974b224a5cdb97dbd377373c9ed7f8a8780324"
98
+ "gitHead": "4ee69b33975e2fa912d2c73700dc7e949f25b2d4"
99
99
  }