소스 검색

引入 flatMap 的 Polyfill

Hwf 3 달 전
부모
커밋
0bb8903478
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      src/main.ts

+ 1 - 2
src/main.ts

@@ -1,6 +1,5 @@
 import { createApp } from 'vue';
-import 'core-js/stable'; // 引入所有稳定版 Polyfill
-import 'regenerator-runtime/runtime'; // 支持 async/await
+import 'core-js/es/array/flat-map'; // 引入 flatMap 的 Polyfill
 // global css
 import 'virtual:uno.css';
 import '@/assets/styles/index.scss';