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 Aug 17, 2024
1 parent c1b5731 commit 7ab5a81
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,30 @@ console.log(formatted);

For Vite users:

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

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

<details>
<summary>
If you cannot change the vite config, you can use another import entry

</summary>

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

// ...
```

</details>

# dprint plugin

```bash
Expand Down

0 comments on commit 7ab5a81

Please sign in to comment.