修改兼容性

main
mula.liu 2026-01-22 18:00:54 +08:00
parent 2f7140e688
commit 0eca877365
1 changed files with 4 additions and 2 deletions

View File

@ -8,8 +8,10 @@ export default defineConfig({
plugins: [
react(),
legacy({
targets: ['defaults', 'not IE 11'],
}),
targets: ['chrome >= 64', 'safari >= 11', 'ios >= 11', 'android >= 9'],
additionalLegacyPolyfills: ['regenerator-runtime/runtime'],
modernPolyfills: true,
}),
],
resolve: {
alias: {