Skip to content

Commit f394b50

Browse files
committed
Use unpkg module option in docs for wasm
Fixes parcel-bundler#394
1 parent fcf4127 commit f394b50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

website/pages/docs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ See the [Parcel docs](https://parceljs.org/languages/css) for more details.
6767
The `lightningcss-wasm` package can be used in Deno or directly in browsers. This uses a WebAssembly build of Lightning CSS. Use `TextEncoder` and `TextDecoder` convert code from a string to a typed array and back.
6868

6969
```js
70-
import init, { transform } from 'https://unpkg.com/lightningcss-wasm';
70+
import init, { transform } from 'https://unpkg.com/lightningcss-wasm?module';
7171

7272
await init();
7373

0 commit comments

Comments
 (0)