Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"@npkg/tinymce-plugins": "^0.0.7",
"@tinymce/tinymce-vue": "^5.1.0",
"@vueuse/core": "^14.1.0",
"core-js": "^3.49.0",
"dayjs": "^1.11.13",
"element-plus": "^2.10.1",
"element-plus-secondary": "^1.0.0",
Expand Down Expand Up @@ -55,6 +56,7 @@
"@types/node": "^22.14.1",
"@typescript-eslint/eslint-plugin": "^8.34.0",
"@typescript-eslint/parser": "^8.34.0",
"@vitejs/plugin-legacy": "^6.1.1",
"@vitejs/plugin-vue": "^5.2.2",
"@vue/tsconfig": "^0.7.0",
"axios": "^1.8.4",
Expand All @@ -76,4 +78,4 @@
"vite-svg-loader": "^5.1.0",
"vue-tsc": "^2.2.8"
}
}
}
2 changes: 2 additions & 0 deletions frontend/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import 'core-js/features/object/has-own'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import './style.less'
Expand Down
2 changes: 1 addition & 1 deletion frontend/tsconfig.node.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
"target": "ES2022",
"target": "ES2020",
"lib": ["ES2023"],
"module": "ESNext",
"skipLibCheck": true,
Expand Down
13 changes: 13 additions & 0 deletions frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import Components from 'unplugin-vue-components-secondary/vite'
import { ElementPlusResolver } from 'unplugin-vue-components-secondary/resolvers'
import path from 'path'
import svgLoader from 'vite-svg-loader'
import legacy from '@vitejs/plugin-legacy'

export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd())
console.info(mode)
Expand All @@ -26,6 +28,11 @@ export default defineConfig(({ mode }) => {
svgo: false,
defaultImport: 'component', // or 'raw'
}),
legacy({
targets: ['Chrome >= 81'],
polyfills: true,
modernPolyfills: true,
}),
],
resolve: {
alias: {
Expand All @@ -40,6 +47,7 @@ export default defineConfig(({ mode }) => {
},
},
build: {
target: 'chrome81',
chunkSizeWarningLimit: 2000,
rollupOptions: {
output: {
Expand All @@ -49,6 +57,11 @@ export default defineConfig(({ mode }) => {
},
},
},
optimizeDeps: {
esbuildOptions: {
target: 'chrome81',
},
},
esbuild: {
jsxFactory: 'h',
jsxFragment: 'Fragment',
Expand Down
Loading