use a fixed browser version as the build target
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user