chore: 移除了 babel 编译流程

* 加快调试速度
* 旧版本浏览器本来也没办法支持了...
This commit is contained in:
CrescentLeaf
2025-10-08 02:50:31 +08:00
parent e666dc573a
commit f5f3774daf
2 changed files with 1 additions and 18 deletions

View File

@@ -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',
},