Disable Babel polyfill injection in dev (#27691)

shrike
Renaud Chaput 2023-11-06 11:24:41 +01:00 committed by GitHub
parent 1416745a2b
commit 3bf896c973
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}