From f5f3774dafd919721a382c78340d3247228797e4 Mon Sep 17 00:00:00 2001 From: CrescentLeaf Date: Wed, 8 Oct 2025 02:50:31 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E7=A7=BB=E9=99=A4=E4=BA=86=20babel=20?= =?UTF-8?q?=E7=BC=96=E8=AF=91=E6=B5=81=E7=A8=8B=20*=20=E5=8A=A0=E5=BF=AB?= =?UTF-8?q?=E8=B0=83=E8=AF=95=E9=80=9F=E5=BA=A6=20*=20=E6=97=A7=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E6=B5=8F=E8=A7=88=E5=99=A8=E6=9C=AC=E6=9D=A5=E4=B9=9F?= =?UTF-8?q?=E6=B2=A1=E5=8A=9E=E6=B3=95=E6=94=AF=E6=8C=81=E4=BA=86...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/deno.jsonc | 2 -- client/vite.config.ts | 17 +---------------- 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/client/deno.jsonc b/client/deno.jsonc index 44565ba..02d20cb 100644 --- a/client/deno.jsonc +++ b/client/deno.jsonc @@ -19,8 +19,6 @@ "@types/react": "npm:@types/react@18.3.1", "@types/react-dom": "npm:@types/react-dom@18.3.1", "@vitejs/plugin-react": "npm:@vitejs/plugin-react@4.7.0", - "vite-plugin-babel": "npm:vite-plugin-babel@1.3.2", - "@babel/preset-env": "npm:@babel/preset-env@7.28.3", "react": "npm:react@18.3.1", "react-dom": "npm:react-dom@18.3.1", "vite": "npm:vite@7.0.6", diff --git a/client/vite.config.ts b/client/vite.config.ts index 8cae720..056a235 100644 --- a/client/vite.config.ts +++ b/client/vite.config.ts @@ -1,27 +1,12 @@ import { defineConfig } from 'vite' import deno from '@deno/vite-plugin' import react from '@vitejs/plugin-react' -import pluginBabel from 'vite-plugin-babel' import config from '../server/config.ts' // https://vite.dev/config/ export default defineConfig({ - plugins: [react(), pluginBabel({ - babelConfig: { - presets: [ - [ - '@babel/preset-env', - { - targets: { - android: '70' - }, - } - ], - ], - } - }), deno()], + plugins: [react(), deno()], build: { - cssTarget: 'chrome70', sourcemap: true, outDir: "." + config.data_path + '/page_compiled', },