chore: add polyfill for replaceAll (#2836)

This commit is contained in:
Akash K
2022-10-29 05:59:07 +05:30
committed by GitHub
parent c99797bcef
commit d162471555
3 changed files with 56 additions and 39 deletions

View File

@@ -16,6 +16,7 @@ import IconResolver from "unplugin-icons/resolver"
import { FileSystemIconLoader } from "unplugin-icons/loaders"
import * as path from "path"
import { VitePluginFonts } from "vite-plugin-fonts"
import legacy from "@vitejs/plugin-legacy"
const ENV = loadEnv("development", process.cwd())
@@ -161,5 +162,9 @@ export default defineConfig({
],
},
}),
legacy({
modernPolyfills: ["es.string.replace-all"],
renderLegacyChunks: false,
}),
],
})