From 1bac48a7171419fd6cfe51a1990119e412c24344 Mon Sep 17 00:00:00 2001 From: jiangs <373297395@qq.com> Date: Thu, 15 Jan 2026 11:09:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=B5=8F=E8=A7=88=E5=99=A8?= =?UTF-8?q?=E6=89=93=E5=8C=85=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite.config.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vite.config.js b/vite.config.js index af69548..03728c3 100644 --- a/vite.config.js +++ b/vite.config.js @@ -4,6 +4,7 @@ import { } from 'vite' import path from 'path' import createVitePlugins from './vite/plugins' +import.meta // https://vitejs.dev/config/ export default defineConfig(({ @@ -75,7 +76,9 @@ export default defineConfig(({ esbuild: { // 生产环境下移除console和debugger drop: VITE_APP_ENV === 'production' ? ['console', 'debugger'] : [] - } + }, + target: 'es2015', + cssTarget: ['chrome64', 'firefox67', 'safari11.1', 'edge79'] // CSS兼容目标: ['chrome64', 'firefox67', 'safari11.1', 'edge79'] // CSS兼容目标 }, optimizeDeps: { // include: ['jquery', 'select2', 'vue3-select2-component'],