Skip to content

Commit 111ab30

Browse files
authored
[docs] 不支持 ESM (not support ESM)
1 parent a25114f commit 111ab30

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,16 @@ import { EZUIKitPlayer } from "ezuikit-js";
3737
import EZUIKit from "ezuikit-js";
3838
```
3939

40+
#### 不支持 ESM (not support ESM)
41+
42+
```js
43+
// >= v8.1.2 CommonJS
44+
import { EZUIKitPlayer } from 'ezuikit-js/index.js';
45+
46+
// < v8.1.2 CommonJS
47+
import EZUIKit from 'ezuikit-js/index.js';
48+
```
49+
4050
#### 如果你使用原生方法,可以通过标签引用
4151

4252
```html

0 commit comments

Comments
 (0)