chore: add vite plugin legacy (#734)

This commit is contained in:
boojack
2022-12-11 22:15:52 +08:00
committed by GitHub
parent c4278ef55a
commit 37b7b983d2
3 changed files with 80 additions and 3 deletions

View File

@@ -1,9 +1,15 @@
import { defineConfig } from "vite";
import legacy from "@vitejs/plugin-legacy";
import react from "@vitejs/plugin-react-swc";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
plugins: [
react(),
legacy({
targets: ["defaults", "not IE 11"],
}),
],
server: {
host: "0.0.0.0",
port: 3000,