@powerlines/plugin-oxc-transform 0.5.686 → 0.5.688

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 +28 -0
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -74,6 +74,34 @@ A Powerlines plugin to transform project code with [Oxc Transformer](https://oxc
74
74
 
75
75
  <!-- END doctoc -->
76
76
 
77
+ ## Features
78
+
79
+ - Transforms project code with [Oxc Transformer](https://oxc.rs/docs/guide/usage/transformer.html).
80
+ - Supports transform options such as `target` (e.g. `"es2022"`).
81
+ - Surfaces syntax errors in the build output.
82
+
83
+ ## Usage
84
+
85
+ Install the package:
86
+
87
+ ```bash
88
+ pnpm add @powerlines/plugin-oxc-transform
89
+ ```
90
+
91
+ Register the plugin in `powerlines.config.ts`:
92
+
93
+ ```ts
94
+ import { defineConfig } from "powerlines/config";
95
+ import { plugin as oxcTransform } from "@powerlines/plugin-oxc-transform";
96
+
97
+ export default defineConfig({
98
+ plugins: [oxcTransform({ target: "es2022" })],
99
+ oxcTransform: { target: "es2022" }
100
+ });
101
+ ```
102
+
103
+ Then run the Powerlines build for your project.
104
+
77
105
  ## Installing
78
106
 
79
107
  Using [pnpm](http://pnpm.io):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-oxc-transform",
3
- "version": "0.5.686",
3
+ "version": "0.5.688",
4
4
  "type": "module",
5
5
  "description": "A Powerlines plugin to transform project code with Oxc Transformer.",
6
6
  "repository": {
@@ -97,13 +97,13 @@
97
97
  "@stryke/path": "^0.29.43",
98
98
  "defu": "^6.1.7",
99
99
  "oxc-transform": "^0.99.0",
100
- "powerlines": "^0.47.215"
100
+ "powerlines": "^0.47.217"
101
101
  },
102
102
  "devDependencies": {
103
- "@powerlines/plugin-plugin": "^0.12.628",
103
+ "@powerlines/plugin-plugin": "^0.12.630",
104
104
  "@types/node": "^25.9.9"
105
105
  },
106
106
  "publishConfig": { "access": "public" },
107
107
  "types": "./dist/index.d.cts",
108
- "gitHead": "810bc635d1503594d09d9f0c8c93ea413745a9df"
108
+ "gitHead": "bb4e1f2b32a8bb9d20559ca7c3df3a2f30a0d14e"
109
109
  }