use a fixed browser version as the build target

This commit is contained in:
MaysWind
2025-10-06 21:49:12 +08:00
parent 76fff27b3f
commit 697f69d5d7
2 changed files with 8 additions and 2 deletions

View File

@@ -1,8 +1,8 @@
{
"extends": "@vue/tsconfig/tsconfig.dom.json",
"compilerOptions": {
"target": "ES2015",
"lib": ["DOM", "ES2015"],
"target": "ES2022",
"lib": ["DOM", "ES2022"],
"types": ["vite/client"],
"strict": true,
"noImplicitReturns": true,

View File

@@ -195,6 +195,12 @@ export default defineConfig(() => {
})
],
build: {
target: [
'chrome91',
'edge91',
'firefox91',
'safari15.4'
],
outDir: BUILD_DIR,
sourcemap: false,
assetsInlineLimit: 0,