mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-02 14:51:25 +00:00
Update import path to ruff-wasm-web (#20539)
This commit is contained in:
parent
46decd4feb
commit
dbc5983503
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ There are multiple versions for the different wasm-pack targets. See [here](http
|
|||
This example uses the wasm-pack web target and is known to work with Vite.
|
||||
|
||||
```ts
|
||||
import init, { Workspace, type Diagnostic } from '@astral-sh/ruff-api';
|
||||
import init, { Workspace, type Diagnostic } from '@astral-sh/ruff-wasm-web';
|
||||
|
||||
const exampleDocument = `print('hello'); print("world")`
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue