Skip to content

Commit 799ab48

Browse files
committed
Upgraded deps
1 parent c7fb732 commit 799ab48

File tree

4 files changed

+3762
-3983
lines changed

4 files changed

+3762
-3983
lines changed

.babelrc

-31
This file was deleted.

.babelrc.js

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
const { NODE_ENV } = process.env
2+
const test = NODE_ENV === 'test'
3+
const loose = true
4+
5+
module.exports = {
6+
presets: [
7+
[
8+
'@babel/preset-env',
9+
{
10+
loose,
11+
...(test ? { targets: { node: '8' } } : {})
12+
}
13+
],
14+
'@babel/preset-react',
15+
'@babel/preset-flow'
16+
],
17+
plugins: [
18+
'@babel/plugin-transform-flow-strip-types',
19+
'@babel/plugin-syntax-dynamic-import',
20+
'@babel/plugin-syntax-import-meta',
21+
['@babel/plugin-proposal-class-properties', { loose }],
22+
'@babel/plugin-proposal-json-strings',
23+
[
24+
'@babel/plugin-proposal-decorators',
25+
{
26+
legacy: true
27+
}
28+
],
29+
'@babel/plugin-proposal-function-sent',
30+
'@babel/plugin-proposal-export-namespace-from',
31+
'@babel/plugin-proposal-numeric-separator',
32+
'@babel/plugin-proposal-throw-expressions',
33+
test && '@babel/plugin-transform-react-jsx-source'
34+
].filter(Boolean)
35+
}

0 commit comments

Comments
 (0)