Added legacy browsers support

This commit is contained in:
Maciej Caderek
2022-04-23 22:40:54 +02:00
parent 550afc0cec
commit d87e02eea6
3 changed files with 132 additions and 3 deletions

View File

@@ -1,8 +1,14 @@
import { defineConfig } from "vite";
import solidPlugin from "vite-plugin-solid";
import legacy from "@vitejs/plugin-legacy";
export default defineConfig({
plugins: [solidPlugin()],
plugins: [
solidPlugin(),
legacy({
targets: ["defaults", "not IE 11"],
}),
],
build: {
target: "esnext",
polyfillDynamicImport: false,