Skip to content

Commit b7c5183

Browse files
committed
docs: add bundler entry example for vite-plugin-wasm
1 parent 7886649 commit b7c5183

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@ await init();
5151
// ...
5252
```
5353

54+
Or use the `./bundler` entry with [vite-plugin-wasm](https://www.npmjs.com/package/vite-plugin-wasm)
55+
56+
```javascript
57+
import { format } from "@wasm-fmt/lua_fmt/bundler";
58+
```
59+
5460
## Entry Points
5561

5662
- `.` - Auto-detects environment (Node.js uses node, Webpack uses bundler, default is ESM)

0 commit comments

Comments
 (0)