@boperators/plugin-esbuild 0.2.1 → 0.3.1

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 +1 -1
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -52,7 +52,7 @@ plugins: [
52
52
  The plugin initialises once inside `setup(build)`, then transforms files on demand:
53
53
 
54
54
  1. **Setup** — creates a [ts-morph](https://ts-morph.com) Project from your tsconfig and scans all source files for operator overload definitions
55
- 2. **`build.onLoad`** — for each `.ts`/`.tsx` file that matches the filter, replaces operator expressions (e.g. `v1 + v2` becomes `Vector3["+"][0](v1, v2)`) and returns the transformed source to ESBuild with the correct `ts`/`tsx` loader
55
+ 2. **`build.onLoad`** — for each `.ts`/`.tsx` file that matches the filter, replaces operator expressions (e.g. `v1 + v2` becomes `Vector3["+"](v1, v2)`) and returns the transformed source to ESBuild with the correct `ts`/`tsx` loader
56
56
 
57
57
  If a file contains no overloaded operators it is returned as-is with no overhead.
58
58
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boperators/plugin-esbuild",
3
- "version": "0.2.1",
3
+ "version": "0.3.1",
4
4
  "license": "MIT",
5
5
  "description": "esbuild plugin for boperators - transforms operator overloads at build time.",
6
6
  "repository": {
@@ -39,7 +39,7 @@
39
39
  "dist"
40
40
  ],
41
41
  "peerDependencies": {
42
- "boperators": "0.2.1",
42
+ "boperators": "0.3.1",
43
43
  "esbuild": ">=0.17.0",
44
44
  "typescript": ">=5.0.0 <5.10.0"
45
45
  },