chore: add polyfill for replaceAll (#2836)
This commit is contained in:
@@ -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,
|
||||
}),
|
||||
],
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user