Skip to content

Commit

Permalink
minor version babel updates
Browse files Browse the repository at this point in the history
and global constant simplification
  • Loading branch information
krystophv committed Sep 26, 2017
1 parent d34d051 commit 5dc582f
Show file tree
Hide file tree
Showing 6 changed files with 158 additions and 199 deletions.
3 changes: 1 addition & 2 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
["webpack-loaders", { "config": "webpack.config.test.js", "verbose": false }],
"babel-plugin-rewire",
["transform-define", {
"__TEST__": "true",
"__DEBUG__": false
"process.env.DEBUG_ERROR": false
}]
]
}
Expand Down
4 changes: 1 addition & 3 deletions app/actions/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
* == BSD2 LICENSE ==
*/

/* global __TEST__ */

import _ from 'lodash';
import stacktrace from 'stack-trace';

Expand Down Expand Up @@ -78,7 +76,7 @@ export function makeUploadCb(dispatch, getState, errCode, utc) {
data: recs
};

if (!__TEST__) {
if (!(process.env.NODE_ENV === 'test')) {
uploadErrProps.stringifiedStack = _.pluck(
_.filter(
stacktrace.parse(err),
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -154,26 +154,26 @@
},
"devDependencies": {
"asar": "0.13.0",
"babel-core": "6.24.1",
"babel-core": "6.26.0",
"babel-eslint": "7.2.2",
"babel-loader": "6.4.1",
"babel-plugin-add-module-exports": "0.2.1",
"babel-plugin-dev-expression": "0.2.1",
"babel-plugin-resolver": "1.1.0",
"babel-plugin-rewire": "1.1.0",
"babel-plugin-transform-class-properties": "6.24.1",
"babel-plugin-transform-define": "1.2.0",
"babel-plugin-transform-define": "1.3.0",
"babel-plugin-transform-es2015-classes": "6.24.1",
"babel-plugin-webpack-loaders": "0.9.0",
"babel-polyfill": "6.23.0",
"babel-preset-env": "1.4.0",
"babel-polyfill": "6.26.0",
"babel-preset-env": "1.6.0",
"babel-preset-react": "6.24.1",
"babel-preset-react-hmre": "1.1.1",
"babel-preset-react-optimize": "1.0.1",
"babel-preset-stage-0": "6.24.1",
"babel-register": "6.24.1",
"babel-runtime": "6.23.0",
"babili-webpack-plugin": "0.0.11",
"babel-register": "6.26.0",
"babel-runtime": "6.26.0",
"babili-webpack-plugin": "0.1.2",
"chai": "3.5.0",
"concurrently": "3.4.0",
"cross-env": "4.0.0",
Expand Down
2 changes: 0 additions & 2 deletions webpack.config.development.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,6 @@ export default validate(merge(baseConfig, {
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV) || '"development"',
'process.env.BUILD': JSON.stringify(process.env.BUILD) || '"dev"',
__DEBUG__: JSON.stringify(JSON.parse(process.env.DEBUG_ERROR || 'false')),
__REDUX_LOG__: JSON.stringify(JSON.parse(process.env.REDUX_LOG || 'false')),
__TEST__: false,
'global.GENTLY': false, // http://github.com/visionmedia/superagent/wiki/SuperAgent-for-Webpack for platform-client
})
],
Expand Down
2 changes: 0 additions & 2 deletions webpack.config.production.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,6 @@ export default validate(merge(baseConfig, {
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV) || '"production"',
'process.env.BUILD': JSON.stringify(process.env.BUILD) || '"prod"',
__DEBUG__: JSON.stringify(JSON.parse(process.env.DEBUG_ERROR || 'false')),
__REDUX_LOG__: JSON.stringify(JSON.parse(process.env.REDUX_LOG || 'false')),
__TEST__: false,
'global.GENTLY': false, // http://github.com/visionmedia/superagent/wiki/SuperAgent-for-Webpack for platform-client
}),

Expand Down
Loading

0 comments on commit 5dc582f

Please sign in to comment.