mirror of https://github.com/astral-sh/ruff
Update import path to ruff-wasm-web (#20539)
This commit is contained in:
parent
46decd4feb
commit
dbc5983503
|
|
@ -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…
Reference in New Issue