Skip to content

Commit cd75b14

Browse files
authored
Merge pull request #7 from airtasker/MOON-12-update-dependencies
Update babelrc in addition to other security dependencies #technical
2 parents 304d353 + 7e09e59 commit cd75b14

File tree

4 files changed

+8012
-3347
lines changed

4 files changed

+8012
-3347
lines changed

.babelrc

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
{
2-
"presets": [["es2015", { "modules": false }], "stage-2", "react"],
2+
"presets": [
3+
["@babel/preset-env", { "modules": false }],
4+
"@babel/preset-react"
5+
],
6+
"plugins": [["@babel/plugin-proposal-class-properties"]],
37
"env": {
48
"commonjs": {
59
"plugins": [["transform-es2015-modules-commonjs", { "loose": true }]]
610
},
711
"rollup": {
8-
"plugins": ["external-helpers"]
12+
"plugins": ["@babel/plugin-external-helpers"]
913
},
1014
"test": {
11-
"presets": ["es2015", "react", "stage-2"]
15+
"presets": ["@babel/preset-env", "@babel/preset-react"]
1216
}
1317
}
1418
}

jest.setup.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {configure} from 'enzyme';
2-
import Adapter from 'enzyme-adapter-react-15';
1+
import { configure } from "enzyme";
2+
import Adapter from "enzyme-adapter-react-16";
33

4-
configure({ adapter: new Adapter() });
4+
configure({ adapter: new Adapter() });

0 commit comments

Comments
 (0)