@powerlines/plugin-rspack 0.5.668 → 0.5.669

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.
Files changed (2) hide show
  1. package/README.md +34 -0
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -74,6 +74,40 @@ A package containing a Powerlines plugin to build projects using [Rspack](https:
74
74
 
75
75
  <!-- END doctoc -->
76
76
 
77
+ ## Features
78
+
79
+ - Builds Powerlines projects with [Rspack](https://rspack.rs)
80
+ - Supplies default Rspack build configuration through the `config` hook
81
+ - Runs the Rspack build through the `build` hook
82
+ - Accepts `Partial<RspackOptions>`, which wraps the Rspack `Configuration` type
83
+
84
+ ## Usage
85
+
86
+ Install the plugin:
87
+
88
+ ```bash
89
+ pnpm add @powerlines/plugin-rspack
90
+ ```
91
+
92
+ Register it in `powerlines.config.ts`:
93
+
94
+ ```ts
95
+ import { plugin as rspack } from "@powerlines/plugin-rspack";
96
+ import { defineConfig } from "powerlines/config";
97
+
98
+ export default defineConfig({
99
+ plugins: [rspack()]
100
+ });
101
+ ```
102
+
103
+ Run the build with the Powerlines CLI. To pass options inline:
104
+
105
+ ```ts
106
+ export default defineConfig({
107
+ plugins: [rspack({ mode: "production" })]
108
+ });
109
+ ```
110
+
77
111
  ## Installing
78
112
 
79
113
  Using [pnpm](http://pnpm.io):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-rspack",
3
- "version": "0.5.668",
3
+ "version": "0.5.669",
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.135",
87
- "@powerlines/unplugin": "^0.0.183",
86
+ "@powerlines/core": "^0.48.136",
87
+ "@powerlines/unplugin": "^0.0.184",
88
88
  "@stryke/helpers": "^0.10.56",
89
89
  "@stryke/path": "^0.29.43",
90
90
  "defu": "^6.1.7",
91
- "powerlines": "^0.47.216",
91
+ "powerlines": "^0.47.217",
92
92
  "unplugin": "^3.4.0"
93
93
  },
94
94
  "devDependencies": { "@rspack/core": "^1.7.12", "@types/node": "^25.9.9" },
95
95
  "peerDependencies": { "@rspack/core": ">=1.5.0" },
96
96
  "peerDependenciesMeta": { "@rspack/core": { "optional": false } },
97
97
  "publishConfig": { "access": "public" },
98
- "gitHead": "75efa1cc4eb8bc90093202669065576aa70fbfef"
98
+ "gitHead": "bb4e1f2b32a8bb9d20559ca7c3df3a2f30a0d14e"
99
99
  }