chore: 測試兼容更舊的瀏覽器内核

* 效果不咋地, Edge 84 因爲 Marked.js 炸了
This commit is contained in:
CrescentLeaf
2025-10-03 23:33:06 +08:00
parent 0026cae639
commit c5ce13b13c
2 changed files with 18 additions and 2 deletions

View File

@@ -1,13 +1,27 @@
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: [deno(), react()],
plugins: [react(), pluginBabel({
babelConfig: {
presets: [
[
'@babel/preset-env',
{
targets: {
android: '70'
},
}
],
],
}
}), deno()],
build: {
cssTarget: 'chrome70',
sourcemap: true,
outDir: "." + config.data_path + '/page_compiled',
},