Преглед на файлове

Disable Babel polyfill injection in dev (#27691)

Renaud Chaput преди 10 месеца
родител
ревизия
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;
   }