Skip to content

Commit 855d2f7

Browse files
authored
chore: remove react-native preset (#84)
1 parent 2ae5cf5 commit 855d2f7

File tree

4 files changed

+298
-285
lines changed

4 files changed

+298
-285
lines changed

.babelrc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
{
2-
"presets": ["react-native"],
3-
"plugins": ["inline-package-json"],
2+
"presets": ["es2015"],
3+
"plugins": [
4+
"inline-package-json",
5+
"transform-class-properties",
6+
"transform-object-rest-spread"
7+
],
48
"env": {
59
"test": {
610
"plugins": [

mocha_setup.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
/* eslint import/no-extraneous-dependencies: ["error", {"devDependencies": true}] */
1+
/*
2+
eslint
3+
import/no-extraneous-dependencies: ["error", {"devDependencies": true}]
4+
*/
25

36
require('babel-polyfill');
47
global.fetch = require('node-fetch');

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,10 @@
4141
"babel-eslint": "7.1.1",
4242
"babel-plugin-inline-package-json": "2.0.0",
4343
"babel-plugin-istanbul": "4.0.0",
44+
"babel-plugin-transform-class-properties": "6.23.0",
45+
"babel-plugin-transform-object-rest-spread": "6.23.0",
4446
"babel-polyfill": "6.23.0",
45-
"babel-preset-react-native": "1.9.0",
47+
"babel-preset-es2015": "6.22.0",
4648
"babel-register": "6.23.0",
4749
"body-parser": "1.17.0",
4850
"codecov": "1.0.1",

0 commit comments

Comments
 (0)