Skip to content

Commit 99c66d7

Browse files
committed
docs: declare usage via non-module scripts is not supported at present
1 parent bbe958e commit 99c66d7

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ createApp()
7777

7878
#### CDN
7979

80+
> Native ESM only (at present), see https://github.com/josdejong/svelte-jsoneditor/pull/195.
81+
8082
```html
8183
<div id="app">
8284
<json-editor-vue v-model="value"></json-editor-vue>
@@ -141,6 +143,8 @@ Vue.use(JsonEditorVue, {
141143

142144
#### CDN
143145

146+
> Native ESM only (at present), see https://github.com/josdejong/svelte-jsoneditor/pull/195.
147+
144148
```html
145149
<div id="app">
146150
<json-editor-vue v-model="value"></json-editor-vue>
@@ -220,7 +224,7 @@ Vue.use(JsonEditorVue, {
220224

221225
#### CDN
222226

223-
> It's quite messy this way due to `vanilla-jsoneditor` does not export UMD.
227+
> Native ESM only (at present), see https://github.com/josdejong/svelte-jsoneditor/pull/195.
224228
225229
```html
226230
<div id="app">

docs/README.zh-CN.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ createApp()
7575

7676
#### CDN
7777

78+
> 目前仅支持原生 ESM,详情见 https://github.com/josdejong/svelte-jsoneditor/pull/195
79+
7880
```html
7981
<div id="app">
8082
<json-editor-vue v-model="value"></json-editor-vue>
@@ -139,6 +141,8 @@ Vue.use(JsonEditorVue, {
139141

140142
#### CDN
141143

144+
> 目前仅支持原生 ESM,详情见 https://github.com/josdejong/svelte-jsoneditor/pull/195
145+
142146
```html
143147
<div id="app">
144148
<json-editor-vue v-model="value"></json-editor-vue>
@@ -218,7 +222,7 @@ Vue.use(JsonEditorVue, {
218222

219223
#### CDN
220224

221-
> 由于 `vanilla-jsoneditor` 没有提供 UMD 导出,这样用会有点绕
225+
> 目前仅支持原生 ESM,详情见 https://github.com/josdejong/svelte-jsoneditor/pull/195
222226
223227
```html
224228
<div id="app">
@@ -533,7 +537,7 @@ export default {
533537
/>
534538
```
535539

536-
> 详情见 https://github.com/josdejong/svelte-jsoneditor/pull/166.
540+
> 详情见 https://github.com/josdejong/svelte-jsoneditor/pull/166
537541
538542
### 布尔类型参数
539543

0 commit comments

Comments
 (0)