26 lines
578 B
JavaScript
26 lines
578 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: [
|
|
[
|
|
'import',
|
|
{
|
|
libraryName: 'antd',
|
|
style: true,
|
|
},
|
|
],
|
|
],
|
|
}
|