File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424 "@npkg/tinymce-plugins" : " ^0.0.7" ,
2525 "@tinymce/tinymce-vue" : " ^5.1.0" ,
2626 "@vueuse/core" : " ^14.1.0" ,
27+ "core-js" : " ^3.49.0" ,
2728 "dayjs" : " ^1.11.13" ,
2829 "element-plus" : " ^2.10.1" ,
2930 "element-plus-secondary" : " ^1.0.0" ,
5556 "@types/node" : " ^22.14.1" ,
5657 "@typescript-eslint/eslint-plugin" : " ^8.34.0" ,
5758 "@typescript-eslint/parser" : " ^8.34.0" ,
59+ "@vitejs/plugin-legacy" : " ^6.1.1" ,
5860 "@vitejs/plugin-vue" : " ^5.2.2" ,
5961 "@vue/tsconfig" : " ^0.7.0" ,
6062 "axios" : " ^1.8.4" ,
7678 "vite-svg-loader" : " ^5.1.0" ,
7779 "vue-tsc" : " ^2.2.8"
7880 }
79- }
81+ }
Original file line number Diff line number Diff line change 1+ import 'core-js/features/object/has-own'
2+
13import { createApp } from 'vue'
24import { createPinia } from 'pinia'
35import './style.less'
Original file line number Diff line number Diff line change 11{
22 "compilerOptions" : {
33 "tsBuildInfoFile" : " ./node_modules/.tmp/tsconfig.node.tsbuildinfo" ,
4- "target" : " ES2022 " ,
4+ "target" : " ES2020 " ,
55 "lib" : [" ES2023" ],
66 "module" : " ESNext" ,
77 "skipLibCheck" : true ,
Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ import Components from 'unplugin-vue-components-secondary/vite'
55import { ElementPlusResolver } from 'unplugin-vue-components-secondary/resolvers'
66import path from 'path'
77import svgLoader from 'vite-svg-loader'
8+ import legacy from '@vitejs/plugin-legacy'
9+
810export default defineConfig ( ( { mode } ) => {
911 const env = loadEnv ( mode , process . cwd ( ) )
1012 console . info ( mode )
@@ -26,6 +28,11 @@ export default defineConfig(({ mode }) => {
2628 svgo : false ,
2729 defaultImport : 'component' , // or 'raw'
2830 } ) ,
31+ legacy ( {
32+ targets : [ 'Chrome >= 81' ] ,
33+ polyfills : true ,
34+ modernPolyfills : true ,
35+ } ) ,
2936 ] ,
3037 resolve : {
3138 alias : {
@@ -40,6 +47,7 @@ export default defineConfig(({ mode }) => {
4047 } ,
4148 } ,
4249 build : {
50+ target : 'chrome81' ,
4351 chunkSizeWarningLimit : 2000 ,
4452 rollupOptions : {
4553 output : {
@@ -49,6 +57,11 @@ export default defineConfig(({ mode }) => {
4957 } ,
5058 } ,
5159 } ,
60+ optimizeDeps : {
61+ esbuildOptions : {
62+ target : 'chrome81' ,
63+ } ,
64+ } ,
5265 esbuild : {
5366 jsxFactory : 'h' ,
5467 jsxFragment : 'Fragment' ,
You can’t perform that action at this time.
0 commit comments