File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 9
9
"vue" : " ^2.6.14"
10
10
},
11
11
"devDependencies" : {
12
+ "@vitejs/plugin-legacy" : " ^1.6.3" ,
12
13
"@vue/runtime-dom" : " ^3.2.22" ,
13
14
"unplugin-vue2-script-setup" : " ^0.7.1" ,
14
- "vite-plugin-vue2" : " ^1.9.0" ,
15
15
"vite" : " ^2.6.14" ,
16
+ "vite-plugin-vue2" : " ^1.9.0" ,
16
17
"vue-template-compiler" : " ^2.6.14"
17
18
}
18
19
}
Original file line number Diff line number Diff line change 1
1
import { fileURLToPath } from 'url'
2
2
3
3
import { defineConfig } from 'vite'
4
+ import legacy from '@vitejs/plugin-legacy'
4
5
import { createVuePlugin as vue2 } from 'vite-plugin-vue2'
5
6
import scriptSetup from 'unplugin-vue2-script-setup/vite'
6
7
@@ -10,7 +11,11 @@ export default defineConfig({
10
11
vue2 ( {
11
12
jsx : true
12
13
} ) ,
13
- scriptSetup ( )
14
+ scriptSetup ( ) ,
15
+ legacy ( {
16
+ targets : [ 'ie >= 11' ] ,
17
+ additionalLegacyPolyfills : [ 'regenerator-runtime/runtime' ]
18
+ } )
14
19
] ,
15
20
resolve : {
16
21
alias : {
You can’t perform that action at this time.
0 commit comments