Skip to content
Snippets Groups Projects
Unverified Commit 3bf896c9 authored by Renaud Chaput's avatar Renaud Chaput Committed by GitHub
Browse files

Disable Babel polyfill injection in dev (#27691)

parent 1416745a
No related branches found
No related tags found
No related merge requests found
...@@ -52,6 +52,10 @@ module.exports = (api) => { ...@@ -52,6 +52,10 @@ module.exports = (api) => {
case 'development': case 'development':
reactOptions.development = true; reactOptions.development = true;
envOptions.debug = 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; break;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment