mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-06 08:38:37 +00:00
feat(vite): support legacy browsers
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import macrosPlugin from "@insertish/vite-plugin-babel-macros";
|
||||
import replace from "@rollup/plugin-replace";
|
||||
import legacy from "@vitejs/plugin-legacy";
|
||||
import { readFileSync } from "fs";
|
||||
import { resolve } from "path";
|
||||
import { defineConfig } from "vite";
|
||||
@@ -45,6 +46,9 @@ export default defineConfig({
|
||||
plugins: [
|
||||
preact(),
|
||||
macrosPlugin(),
|
||||
legacy({
|
||||
targets: ["defaults", "not IE 11"],
|
||||
}),
|
||||
VitePWA({
|
||||
srcDir: "src",
|
||||
filename: "sw.ts",
|
||||
|
||||
Reference in New Issue
Block a user