Skip to content

Commit

Permalink
Update Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ije committed Nov 22, 2023
1 parent 712a0dd commit 09f04c5
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,16 +246,6 @@ import wasm from "https://esm.sh/@dqbd/[email protected]/tiktoken_bg.wasm?module";
const { exports } = new WebAssembly.Instance(wasm, imports);
```

### Fixing Named Exports

If you get an error like `...not provide an export named...`, that means esm.sh
can't resolve named exports of the module correctly. You can add
`?exports=foo,bar` query to specify the named exports:

```js
import { render } from "https://esm.sh/[email protected]?exports=render";
```

## Using Import Maps

[**Import Maps**](https://github.com/WICG/import-maps) has been supported by
Expand Down

0 comments on commit 09f04c5

Please sign in to comment.