Skip to content

Commit

Permalink
Add *.wasm files to the exports section of package.json
Browse files Browse the repository at this point in the history
Allows package consumers to access the Wasm binaries, see for example:
swissspidy/media-experiments#603
  • Loading branch information
kleisauke committed Aug 11, 2024
1 parent e60fc54 commit 94f662c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Uses libvips v8.15.2, compiled with Emscripten v3.1.64.
automatically deleted when `setAutoDeleteLater(true)` is used.
[#70](https://github.com/kleisauke/wasm-vips/pull/70)
[@marcosc90](https://github.com/marcosc90)
- Add `*.wasm` files to the `exports` section of `package.json`.

### Changed

Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@
},
"default": "./lib/vips.js"
},
"./versions": "./versions.json"
"./versions": "./versions.json",
"./vips.wasm": "./lib/vips.wasm",
"./vips-heif.wasm": "./lib/vips-heif.wasm",
"./vips-jxl.wasm": "./lib/vips-jxl.wasm",
"./vips-resvg.wasm": "./lib/vips-resvg.wasm"
},
"main": "lib/vips-node.js",
"browser": "lib/vips.js",
Expand Down

0 comments on commit 94f662c

Please sign in to comment.