소스 검색

Disable Babel polyfill injection in dev (#27691)

Renaud Chaput 7 달 전
부모
커밋
3bf896c973
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      babel.config.js

+ 4 - 0
babel.config.js

@@ -52,6 +52,10 @@ module.exports = (api) => {
   case 'development':
     reactOptions.development = true;
     envOptions.debug = true;
+
+    // We need Babel to not inject polyfills in dev, as this breaks `preval` files
+    envOptions.useBuiltIns = false;
+    envOptions.corejs = undefined;
     break;
   }