mirror of
https://github.com/kikobar/mastodon.git
synced 2024-11-16 12:12:14 +00:00
Disable Babel polyfill injection in dev (#27691)
This commit is contained in:
parent
1416745a2b
commit
3bf896c973
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue