29 lines
692 B
JavaScript
29 lines
692 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 }],
|
|
],
|
|
};
|