mirror of https://github.com/trezor/trezor-wallet
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.2 KiB
50 lines
1.2 KiB
5 years ago
|
module.exports = (api) => {
|
||
|
api.cache(true);
|
||
|
|
||
|
return {
|
||
|
presets: [
|
||
|
[
|
||
|
'@babel/preset-env',
|
||
|
{
|
||
|
useBuiltIns: 'entry',
|
||
|
loose: true,
|
||
|
},
|
||
|
],
|
||
|
'@babel/preset-react',
|
||
|
'@babel/preset-flow',
|
||
|
],
|
||
|
plugins: [
|
||
|
'react-hot-loader/babel',
|
||
|
'@babel/plugin-transform-flow-strip-types',
|
||
|
'@babel/plugin-proposal-class-properties',
|
||
|
'@babel/plugin-proposal-object-rest-spread',
|
||
|
[
|
||
|
'@babel/plugin-transform-runtime',
|
||
|
{
|
||
|
regenerator: true,
|
||
|
},
|
||
|
],
|
||
|
[
|
||
|
'module-resolver',
|
||
|
{
|
||
|
root: [
|
||
|
'./src',
|
||
|
],
|
||
|
alias: {
|
||
|
public: [
|
||
|
'./public',
|
||
|
],
|
||
|
},
|
||
|
},
|
||
|
],
|
||
|
'babel-plugin-styled-components',
|
||
|
],
|
||
|
env: {
|
||
|
test: {
|
||
|
presets: [
|
||
|
'jest',
|
||
|
],
|
||
|
},
|
||
|
},
|
||
|
};
|
||
|
};
|