This repository has been archived on 2022-03-23. You can view files and clone it, but cannot push or open issues or pull requests.
react-template/.babelrc.js

18 lines
479 B
JavaScript

module.exports = {
presets: [
[
'@babel/preset-env',
{
// Allow importing core-js in entrypoint and use browserlist to select polyfills
useBuiltIns: 'entry',
// Set the corejs version we are using to avoid warnings in console
corejs: 3,
// Exclude transforms that make all code slower
exclude: ['transform-typeof-symbol'],
},
],
['@babel/preset-react', { useBuiltIns: true }],
],
plugins: [],
}