Update import path to ruff-wasm-web (#20539)

This commit is contained in:
ShikChen 2025-09-24 00:57:26 +08:00 committed by GitHub
parent 46decd4feb
commit dbc5983503
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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. This example uses the wasm-pack web target and is known to work with Vite.
```ts ```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")` const exampleDocument = `print('hello'); print("world")`