Skip to content

Commit 153a0e7

Browse files
committed
docs: should consider Vite 5 or higher
1 parent 0dcf905 commit 153a0e7

File tree

2 files changed

+28
-28
lines changed

2 files changed

+28
-28
lines changed

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -558,8 +558,8 @@ npm i json-editor-vue
558558

559559
export default {
560560
build: {
561-
// Vite 4 (Rollup 3) uses ES2020 as compiler target by default
562-
// Therefore Vite-4-built outputs should be transpiled in webpack 4
561+
// Vite 4 (Rollup 3) uses ES2020 as compiler target by default
562+
// Therefore Vite-4-built outputs should be transpiled in webpack 4
563563
transpile: ['json-editor-vue'],
564564
extend(config) {
565565
// Getting webpack to recognize the `.mjs` file
@@ -602,8 +602,8 @@ const value = ref()
602602
export default {
603603
plugins: ['~/plugins/JsonEditorVue.client'],
604604
build: {
605-
// Vite 4 (Rollup 3) uses ES2020 as compiler target by default
606-
// Therefore Vite-4-built outputs should be transpiled in webpack 4
605+
// Vite 4 (Rollup 3) uses ES2020 as compiler target by default
606+
// Therefore Vite-4-built outputs should be transpiled in webpack 4
607607
transpile: ['json-editor-vue'],
608608
extend(config) {
609609
// Getting webpack to recognize the `.mjs` file
@@ -660,8 +660,8 @@ npm i json-editor-vue @vue/composition-api
660660

661661
export default {
662662
build: {
663-
// Vite 4 (Rollup 3) uses ES2020 as compiler target by default
664-
// Therefore Vite-4-built outputs should be transpiled in webpack 4
663+
// Vite 4 (Rollup 3) uses ES2020 as compiler target by default
664+
// Therefore Vite-4-built outputs should be transpiled in webpack 4
665665
transpile: ['json-editor-vue'],
666666
extend(config) {
667667
// Getting webpack to recognize the `.mjs` file
@@ -712,8 +712,8 @@ export default {
712712
export default {
713713
plugins: ['~/plugins/JsonEditorVue.client'],
714714
build: {
715-
// Vite 4 (Rollup 3) uses ES2020 as compiler target by default
716-
// Therefore Vite-4-built outputs should be transpiled in webpack 4
715+
// Vite 4 (Rollup 3) uses ES2020 as compiler target by default
716+
// Therefore Vite-4-built outputs should be transpiled in webpack 4
717717
transpile: ['json-editor-vue'],
718718
extend(config) {
719719
// Getting webpack to recognize the `.mjs` file
@@ -783,8 +783,8 @@ Ready to use right out of the box.
783783
// vue.config.js
784784

785785
module.exports = {
786-
// Vite 4 (Rollup 3) uses ES2020 as compiler target by default
787-
// Therefore Vite-4-built outputs should be transpiled in webpack 4
786+
// Vite 4 (Rollup 3) uses ES2020 as compiler target by default
787+
// Therefore Vite-4-built outputs should be transpiled in webpack 4
788788
transpileDependencies: ['json-editor-vue'],
789789
}
790790
```
@@ -795,8 +795,8 @@ module.exports = {
795795
// vue.config.js
796796

797797
module.exports = {
798-
// Vite 4 (Rollup 3) uses ES2020 as compiler target by default
799-
// Therefore Vite-4-built outputs should be transpiled in webpack 4
798+
// Vite 4 (Rollup 3) uses ES2020 as compiler target by default
799+
// Therefore Vite-4-built outputs should be transpiled in webpack 4
800800
transpileDependencies: ['json-editor-vue'],
801801
configureWebpack: {
802802
module: {
@@ -836,8 +836,8 @@ module.exports = {
836836
// vue.config.js
837837

838838
module.exports = {
839-
// Vite 4 (Rollup 3) uses ES2020 as compiler target by default
840-
// Therefore Vite-4-built outputs should be transpiled in webpack 4
839+
// Vite 4 (Rollup 3) uses ES2020 as compiler target by default
840+
// Therefore Vite-4-built outputs should be transpiled in webpack 4
841841
transpileDependencies: ['json-editor-vue'],
842842
chainWebpack(config) {
843843
// Getting webpack to recognize the `.mjs` file

docs/README.zh-CN.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -556,8 +556,8 @@ npm i json-editor-vue
556556

557557
export default {
558558
build: {
559-
// Vite 4 (Rollup 3) 默认的编译目标为 ES2020
560-
// 所以在 webpack 4 中需要对 Vite 4 打包的依赖进行转译
559+
// Vite 4 (Rollup 3) 默认的编译目标为 ES2020
560+
// 所以在 webpack 4 中需要对 Vite 4 打包的依赖进行转译
561561
transpile: ['json-editor-vue'],
562562
extend(config) {
563563
// 让 webpack 识别 `.mjs` 文件
@@ -600,8 +600,8 @@ const value = ref()
600600
export default {
601601
plugins: ['~/plugins/JsonEditorVue.client'],
602602
build: {
603-
// Vite 4 (Rollup 3) 默认的编译目标为 ES2020
604-
// 所以在 webpack 4 中需要对 Vite 4 打包的依赖进行转译
603+
// Vite 4 (Rollup 3) 默认的编译目标为 ES2020
604+
// 所以在 webpack 4 中需要对 Vite 4 打包的依赖进行转译
605605
transpile: ['json-editor-vue'],
606606
extend(config) {
607607
// 让 webpack 识别 `.mjs` 文件
@@ -658,8 +658,8 @@ npm i json-editor-vue @vue/composition-api
658658

659659
export default {
660660
build: {
661-
// Vite 4 (Rollup 3) 默认的编译目标为 ES2020
662-
// 所以在 webpack 4 中需要对 Vite 4 打包的依赖进行转译
661+
// Vite 4 (Rollup 3) 默认的编译目标为 ES2020
662+
// 所以在 webpack 4 中需要对 Vite 4 打包的依赖进行转译
663663
transpile: ['json-editor-vue'],
664664
extend(config) {
665665
// 让 webpack 识别 `.mjs` 文件
@@ -710,8 +710,8 @@ export default {
710710
export default {
711711
plugins: ['~/plugins/JsonEditorVue.client'],
712712
build: {
713-
// Vite 4 (Rollup 3) 默认的编译目标为 ES2020
714-
// 所以在 webpack 4 中需要对 Vite 4 打包的依赖进行转译
713+
// Vite 4 (Rollup 3) 默认的编译目标为 ES2020
714+
// 所以在 webpack 4 中需要对 Vite 4 打包的依赖进行转译
715715
transpile: ['json-editor-vue'],
716716
extend(config) {
717717
// 让 webpack 识别 `.mjs` 文件
@@ -781,8 +781,8 @@ export default {
781781
// vue.config.js
782782

783783
module.exports = {
784-
// Vite 4 (Rollup 3) 默认的编译目标为 ES2020
785-
// 所以在 webpack 4 中需要对 Vite 4 打包的依赖进行转译
784+
// Vite 4 (Rollup 3) 默认的编译目标为 ES2020
785+
// 所以在 webpack 4 中需要对 Vite 4 打包的依赖进行转译
786786
transpileDependencies: ['json-editor-vue'],
787787
}
788788
```
@@ -793,8 +793,8 @@ module.exports = {
793793
// vue.config.js
794794

795795
module.exports = {
796-
// Vite 4 (Rollup 3) 默认的编译目标为 ES2020
797-
// 所以在 webpack 4 中需要对 Vite 4 打包的依赖进行转译
796+
// Vite 4 (Rollup 3) 默认的编译目标为 ES2020
797+
// 所以在 webpack 4 中需要对 Vite 4 打包的依赖进行转译
798798
transpileDependencies: ['json-editor-vue'],
799799
configureWebpack: {
800800
module: {
@@ -834,8 +834,8 @@ module.exports = {
834834
// vue.config.js
835835

836836
module.exports = {
837-
// Vite 4 (Rollup 3) 默认的编译目标为 ES2020
838-
// 所以在 webpack 4 中需要对 Vite 4 打包的依赖进行转译
837+
// Vite 4 (Rollup 3) 默认的编译目标为 ES2020
838+
// 所以在 webpack 4 中需要对 Vite 4 打包的依赖进行转译
839839
transpileDependencies: ['json-editor-vue'],
840840
chainWebpack(config) {
841841
// 让 webpack 识别 `.mjs` 文件

0 commit comments

Comments
 (0)