diff options
author | Renaud Chaput <renchap@gmail.com> | 2023-11-06 11:24:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-06 10:24:41 +0000 |
commit | 3bf896c973404261f4f7b25c25ea22adb1a85e7d (patch) | |
tree | 58dd143791b6293373bcae1eac3da87106c4b6cc /babel.config.js | |
parent | 1416745a2b23f95dcdcc459faa1367525d53e69d (diff) |
Disable Babel polyfill injection in dev (#27691)
Diffstat (limited to 'babel.config.js')
-rw-r--r-- | babel.config.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/babel.config.js b/babel.config.js index 71e72d71383..9ced748a961 100644 --- a/babel.config.js +++ b/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; } |