feat: update
This commit is contained in:
@@ -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({
|
||||
|
Reference in New Issue
Block a user