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", "extends": "@vue/tsconfig/tsconfig.dom.json",
"compilerOptions": { "compilerOptions": {
"target": "ES2015", "target": "ES2022",
"lib": ["DOM", "ES2015"], "lib": ["DOM", "ES2022"],
"types": ["vite/client"], "types": ["vite/client"],
"strict": true, "strict": true,
"noImplicitReturns": true, "noImplicitReturns": true,

View File

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