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

@@ -44,6 +44,7 @@
"@urql/devtools": "^2.0.3",
"@urql/exchange-auth": "^0.1.7",
"@urql/exchange-graphcache": "^4.4.3",
"@vitejs/plugin-legacy": "^2.3.0",
"@vueuse/core": "^8.7.5",
"@vueuse/head": "^0.7.9",
"acorn-walk": "^8.2.0",

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,
}),
],
})