Skip to content

Commit

Permalink
chore: Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
magic-akari committed Jun 7, 2024
1 parent 92ed1ed commit d47d4bd
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,18 @@ console.log(formatted);

For Vite users:

Add `"@wasm-fmt/lua_fmt"` to `optimizeDeps.exclude` in your vite config:

```JSON
{
"optimizeDeps": {
"exclude": ["@wasm-fmt/lua_fmt"]
}
}
```

Or use another import entry:

```JavaScript
import init, { format } from "@wasm-fmt/lua_fmt/vite";

Expand Down

0 comments on commit d47d4bd

Please sign in to comment.