28 lines
691 B
JavaScript
28 lines
691 B
JavaScript
|
/* eslint-env node */
|
||
|
module.exports = {
|
||
|
presets: [
|
||
|
[
|
||
|
'@babel/preset-env',
|
||
|
{
|
||
|
shippedProposals: true,
|
||
|
useBuiltIns: 'usage',
|
||
|
corejs: '3',
|
||
|
targets: ['last 1 Chrome versions', 'last 1 Firefox versions', 'last 1 Safari versions'],
|
||
|
},
|
||
|
],
|
||
|
],
|
||
|
plugins: [
|
||
|
[
|
||
|
'@babel/plugin-proposal-decorators',
|
||
|
{
|
||
|
legacy: true,
|
||
|
},
|
||
|
],
|
||
|
['@babel/plugin-proposal-class-properties', { loose: true }],
|
||
|
'@babel/plugin-syntax-dynamic-import',
|
||
|
['@babel/plugin-proposal-object-rest-spread', { loose: true, useBuiltIns: true }],
|
||
|
'babel-plugin-macros',
|
||
|
['emotion', { sourceMap: true, autoLabel: true }],
|
||
|
],
|
||
|
};
|