2019-08-02 17:47:20 +02:00
|
|
|
module.exports = function (api) {
|
2021-02-04 19:15:23 +01:00
|
|
|
api.cache(false);
|
2019-08-02 17:47:20 +02:00
|
|
|
return {
|
|
|
|
presets: [
|
|
|
|
[
|
|
|
|
'@babel/preset-env',
|
|
|
|
{
|
|
|
|
targets: {
|
2021-01-21 16:01:42 +01:00
|
|
|
browsers: ['chrome >= 63', 'firefox >= 68'],
|
2019-08-02 17:47:20 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
'@babel/preset-react',
|
|
|
|
],
|
|
|
|
plugins: [
|
|
|
|
'@babel/plugin-transform-runtime',
|
|
|
|
'@babel/plugin-proposal-class-properties',
|
|
|
|
'@babel/plugin-proposal-object-rest-spread',
|
2020-02-18 16:11:52 +01:00
|
|
|
'@babel/plugin-proposal-optional-chaining',
|
2020-07-07 22:15:04 +02:00
|
|
|
'@babel/plugin-proposal-nullish-coalescing-operator',
|
2019-08-02 17:47:20 +02:00
|
|
|
],
|
2021-02-04 19:15:23 +01:00
|
|
|
};
|
|
|
|
};
|