feat: update

This commit is contained in:
landaiqing
2024-05-05 16:07:23 +08:00
parent a1e178c3d7
commit ab75f24aa0

View File

@@ -20,8 +20,11 @@ export default defineConfig(({ mode }) => {
plugins: [
react(),
legacy({
targets: ['defaults', 'ie >= 11', 'chrome 52'],
targets: ['ie >= 11', 'chrome 52', 'Chrome > 70', 'Safari 12.1', 'ios >= 12.3'],
additionalLegacyPolyfills: ['regenerator-runtime/runtime'],
renderLegacyChunks: true,
polyfills: ['es.promise.all-settled', 'es.object.entries'],
modernPolyfills: ['es.promise.all-settled', 'es.object.entries'],
}),
// 修改 icons 相关配置
createSvgIconsPlugin({