@@ -679,6 +679,30 @@ export default {
679
679
680
680
<br >
681
681
682
+ ### Vite
683
+
684
+ Ready to use right out of the box.
685
+
686
+ <br >
687
+
688
+ ### Vue CLI 5 / webpack 5
689
+
690
+ Ready to use right out of the box.
691
+
692
+ <br >
693
+
694
+ ### Vue CLI 4 / webpack 4
695
+
696
+ Vite 4 (Rollup 3) uses ES2020 as compiler target by default, therefore Vite-4-built outputs should be transpiled in webpack 4:
697
+
698
+ ``` js
699
+ module .exports = {
700
+ transpileDependencies: [' json-editor-vue' ],
701
+ }
702
+ ```
703
+
704
+ <br >
705
+
682
706
## Props
683
707
684
708
| Name | Description | Type | Default |
@@ -689,12 +713,12 @@ export default {
689
713
690
714
> ⚠ kebab-case is required for tag & prop name when using from CDN
691
715
692
- ### Binding value difference between ` svelte-jsoneditor ` and ` json-editor-vue `
716
+ ### Binding value difference between ' svelte-jsoneditor' and ' json-editor-vue'
693
717
694
- - ` svelte-jsoneditor ` : An object contains a stringified JSON or a parsed JSON, will do ` JSON.parse ` when passing as a stringified JSON.
695
- - ` json-editor-vue ` : JSON itself. What users see is what users get.
718
+ - ' svelte-jsoneditor' : An object contains a stringified JSON or a parsed JSON, will do ` JSON.parse ` when passing as a stringified JSON.
719
+ - ' json-editor-vue' : JSON itself. What users see is what users get.
696
720
697
- If you prefer the behavior of ` svelte-jsoneditor ` :
721
+ If you prefer the behavior of ' svelte-jsoneditor' :
698
722
699
723
``` html
700
724
<JsonEditorVue
@@ -708,7 +732,7 @@ If you prefer the behavior of `svelte-jsoneditor`:
708
732
709
733
### Boolean properties
710
734
711
- Including the boolean properties of ` svelte-jsoneditor ` like ` readOnly ` with no value will imply ` true ` :
735
+ Including the boolean properties of ' svelte-jsoneditor' like ` readOnly ` with no value will imply ` true ` :
712
736
713
737
- ✔️ ` <JsonEditorVue readOnly /> `
714
738
0 commit comments