From 09f04c5b578913ed2a378b4b38b314e555ce646f Mon Sep 17 00:00:00 2001 From: X Date: Thu, 23 Nov 2023 06:04:22 +0800 Subject: [PATCH] Update Readme --- README.md | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/README.md b/README.md index 042c50104..dc021a6d8 100644 --- a/README.md +++ b/README.md @@ -246,16 +246,6 @@ import wasm from "https://esm.sh/@dqbd/tiktoken@1.0.3/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/react-dom@18.2.0?exports=render"; -``` - ## Using Import Maps [**Import Maps**](https://github.com/WICG/import-maps) has been supported by