From 2fb0b871a1e7a5f79b065e2f42dd427eece88223 Mon Sep 17 00:00:00 2001 From: Ambit Date: Tue, 21 Jun 2022 13:40:27 +0800 Subject: [PATCH] docs: update README --- README.md | 4 ++-- README.zh-CN.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0dc8a04..264691f 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ const realm = new ShadowRealm(); ### Po**l**yfill: patch up the global object ```javascript -import 'shadowrealm-api/dist/polyfill.mjs' +import 'shadowrealm-api/dist/polyfill' const realm = new ShadowRealm(); ``` @@ -79,7 +79,7 @@ Use polyfills: ```js import "fetch polyfill"; import "URL polyfill"; -import "shadowrealm-api/dist/polyfill.mjs"; +import "shadowrealm-api/dist/polyfill"; // Your codes ``` diff --git a/README.zh-CN.md b/README.zh-CN.md index db412fe..b98e383 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -28,7 +28,7 @@ const realm = new ShadowRealm(); ### Po**l**yfill: 修补全局对象 ```javascript -import 'shadowrealm-api/dist/polyfill.mjs' +import 'shadowrealm-api/dist/polyfill' const realm = new ShadowRealm(); ``` @@ -80,7 +80,7 @@ export { obj, fn }; ```js import "fetch polyfill"; import "URL polyfill"; -import "shadowrealm-api/dist/polyfill.mjs"; +import "shadowrealm-api/dist/polyfill"; // 你的代码 ```