File tree Expand file tree Collapse file tree 33 files changed +176
-16
lines changed
typescript-pinia-with-tests
typescript-router-pinia-with-tests
typescript-router-with-tests Expand file tree Collapse file tree 33 files changed +176
-16
lines changed Original file line number Diff line number Diff line change 11
11
"vue" : " ^2.6.14"
12
12
},
13
13
"devDependencies" : {
14
+ "@vitejs/plugin-legacy" : " ^1.6.3" ,
14
15
"@vue/runtime-dom" : " ^3.2.22" ,
15
16
"unplugin-vue2-script-setup" : " ^0.7.1" ,
16
17
"vite" : " ^2.6.14" ,
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 : {
Original file line number Diff line number Diff line change 18
18
"devDependencies" : {
19
19
"@cypress/vite-dev-server" : " ^2.2.1" ,
20
20
"@cypress/vue" : " ^2.2.4" ,
21
+ "@vitejs/plugin-legacy" : " ^1.6.3" ,
21
22
"@vue/runtime-dom" : " ^3.2.22" ,
22
23
"cypress" : " ^9.1.0" ,
23
24
"start-server-and-test" : " ^1.14.0" ,
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 : {
Original file line number Diff line number Diff line change 12
12
"vue" : " ^2.6.14"
13
13
},
14
14
"devDependencies" : {
15
+ "@vitejs/plugin-legacy" : " ^1.6.3" ,
15
16
"@vue/runtime-dom" : " ^3.2.22" ,
16
17
"unplugin-vue2-script-setup" : " ^0.7.1" ,
17
18
"vite" : " ^2.6.14" ,
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 : {
Original file line number Diff line number Diff line change 19
19
"devDependencies" : {
20
20
"@cypress/vite-dev-server" : " ^2.2.1" ,
21
21
"@cypress/vue" : " ^2.2.4" ,
22
+ "@vitejs/plugin-legacy" : " ^1.6.3" ,
22
23
"@vue/runtime-dom" : " ^3.2.22" ,
23
24
"cypress" : " ^9.1.0" ,
24
25
"start-server-and-test" : " ^1.14.0" ,
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 : {
Original file line number Diff line number Diff line change 13
13
"vue-router" : " ^3.5.3"
14
14
},
15
15
"devDependencies" : {
16
+ "@vitejs/plugin-legacy" : " ^1.6.3" ,
16
17
"@vue/runtime-dom" : " ^3.2.22" ,
17
18
"unplugin-vue2-script-setup" : " ^0.7.1" ,
18
19
"vite" : " ^2.6.14" ,
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 : {
Original file line number Diff line number Diff line change 18
18
"devDependencies" : {
19
19
"@cypress/vite-dev-server" : " ^2.2.1" ,
20
20
"@cypress/vue" : " ^2.2.4" ,
21
+ "@vitejs/plugin-legacy" : " ^1.6.3" ,
21
22
"@vue/runtime-dom" : " ^3.2.22" ,
22
23
"cypress" : " ^9.1.0" ,
23
24
"start-server-and-test" : " ^1.14.0" ,
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 : {
Original file line number Diff line number Diff line change 12
12
"vue-router" : " ^3.5.3"
13
13
},
14
14
"devDependencies" : {
15
+ "@vitejs/plugin-legacy" : " ^1.6.3" ,
15
16
"@vue/runtime-dom" : " ^3.2.22" ,
16
17
"unplugin-vue2-script-setup" : " ^0.7.1" ,
17
18
"vite" : " ^2.6.14" ,
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 : {
Original file line number Diff line number Diff line change 20
20
"@cypress/vite-dev-server" : " ^2.2.1" ,
21
21
"@cypress/vue" : " ^2.2.4" ,
22
22
"@types/node" : " ^16.11.10" ,
23
+ "@vitejs/plugin-legacy" : " ^1.6.3" ,
23
24
"@vue/runtime-dom" : " ^3.2.22" ,
24
25
"cypress" : " ^9.1.0" ,
25
26
"start-server-and-test" : " ^1.14.0" ,
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 : {
Original file line number Diff line number Diff line change 14
14
},
15
15
"devDependencies" : {
16
16
"@types/node" : " ^16.11.10" ,
17
+ "@vitejs/plugin-legacy" : " ^1.6.3" ,
17
18
"@vue/runtime-dom" : " ^3.2.22" ,
18
19
"typescript" : " ~4.4.4" ,
19
20
"unplugin-vue2-script-setup" : " ^0.7.1" ,
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 : {
Original file line number Diff line number Diff line change 21
21
"@cypress/vite-dev-server" : " ^2.2.1" ,
22
22
"@cypress/vue" : " ^2.2.4" ,
23
23
"@types/node" : " ^16.11.10" ,
24
+ "@vitejs/plugin-legacy" : " ^1.6.3" ,
24
25
"@vue/runtime-dom" : " ^3.2.22" ,
25
26
"cypress" : " ^9.1.0" ,
26
27
"start-server-and-test" : " ^1.14.0" ,
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 : {
Original file line number Diff line number Diff line change 15
15
},
16
16
"devDependencies" : {
17
17
"@types/node" : " ^16.11.10" ,
18
+ "@vitejs/plugin-legacy" : " ^1.6.3" ,
18
19
"@vue/runtime-dom" : " ^3.2.22" ,
19
20
"typescript" : " ~4.4.4" ,
20
21
"unplugin-vue2-script-setup" : " ^0.7.1" ,
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 : {
Original file line number Diff line number Diff line change 20
20
"@cypress/vite-dev-server" : " ^2.2.1" ,
21
21
"@cypress/vue" : " ^2.2.4" ,
22
22
"@types/node" : " ^16.11.10" ,
23
+ "@vitejs/plugin-legacy" : " ^1.6.3" ,
23
24
"@vue/runtime-dom" : " ^3.2.22" ,
24
25
"cypress" : " ^9.1.0" ,
25
26
"start-server-and-test" : " ^1.14.0" ,
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 : {
Original file line number Diff line number Diff line change 14
14
},
15
15
"devDependencies" : {
16
16
"@types/node" : " ^16.11.10" ,
17
+ "@vitejs/plugin-legacy" : " ^1.6.3" ,
17
18
"@vue/runtime-dom" : " ^3.2.22" ,
18
19
"typescript" : " ~4.4.4" ,
19
20
"unplugin-vue2-script-setup" : " ^0.7.1" ,
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 : {
Original file line number Diff line number Diff line change 19
19
"@cypress/vite-dev-server" : " ^2.2.1" ,
20
20
"@cypress/vue" : " ^2.2.4" ,
21
21
"@types/node" : " ^16.11.10" ,
22
+ "@vitejs/plugin-legacy" : " ^1.6.3" ,
22
23
"@vue/runtime-dom" : " ^3.2.22" ,
23
24
"cypress" : " ^9.1.0" ,
24
25
"start-server-and-test" : " ^1.14.0" ,
You can’t perform that action at this time.
0 commit comments