File tree Expand file tree Collapse file tree 3 files changed +15
-9
lines changed Expand file tree Collapse file tree 3 files changed +15
-9
lines changed Original file line number Diff line number Diff line change 5
5
"preview" : " vite preview --port 5050"
6
6
},
7
7
"dependencies" : {
8
- "@vue/composition-api" : " ^1.4.0 " ,
8
+ "@vue/composition-api" : " ^1.4.6 " ,
9
9
"vue" : " ^2.6.14"
10
10
},
11
11
"devDependencies" : {
12
- "@vitejs/plugin-legacy" : " ^1.6.3" ,
13
- "@vue/runtime-dom" : " ^3.2.22" ,
14
- "unplugin-vue2-script-setup" : " ^0.7.1" ,
15
- "vite" : " ^2.6.14" ,
16
- "vite-plugin-vue2" : " ^1.9.0" ,
12
+ "@vitejs/plugin-legacy" : " ^1.7.1" ,
13
+ "@vue/runtime-dom" : " ^3.2.31" ,
14
+ "unplugin-vue2-script-setup" : " ^0.9.3" ,
15
+ "vite" : " ^2.8.3" ,
16
+ "vite-plugin-vue2" : " ^1.9.3" ,
17
+ "vue-template-babel-compiler" : " 1.1.3" ,
17
18
"vue-template-compiler" : " ^2.6.14"
18
19
}
19
20
}
Original file line number Diff line number Diff line change @@ -3,13 +3,18 @@ import { fileURLToPath } from 'url'
3
3
import { defineConfig } from 'vite'
4
4
import legacy from '@vitejs/plugin-legacy'
5
5
import { createVuePlugin as vue2 } from 'vite-plugin-vue2'
6
+ // @ts -ignore
7
+ import vueTemplateBabelCompiler from 'vue-template-babel-compiler'
6
8
import scriptSetup from 'unplugin-vue2-script-setup/vite'
7
9
8
10
// https://vitejs.dev/config/
9
11
export default defineConfig ( {
10
12
plugins : [
11
13
vue2 ( {
12
- jsx : true
14
+ jsx : true ,
15
+ vueTemplateOptions : {
16
+ compiler : vueTemplateBabelCompiler
17
+ }
13
18
} ) ,
14
19
scriptSetup ( ) ,
15
20
legacy ( {
Original file line number Diff line number Diff line change 5
5
},
6
6
"devDependencies" : {
7
7
"@types/node" : " ^16.11.10" ,
8
- "typescript" : " ~4.5.2 " ,
9
- "vue-tsc" : " ^0.29.6 "
8
+ "typescript" : " ~4.5.5 " ,
9
+ "vue-tsc" : " ^0.31.4 "
10
10
}
11
11
}
You can’t perform that action at this time.
0 commit comments