Use babel 5 for karma tests

pull/21833/head
Richard van der Hoff 2016-03-31 16:38:56 +01:00
parent 3129e84b6c
commit 73f7528d0f
2 changed files with 11 additions and 6 deletions

View File

@ -99,7 +99,10 @@ module.exports = function (config) {
path.resolve('./test'),
],
query: {
presets: ['react', 'es2015']
// we're using react 5, for consistency with
// the release build, which doesn't use the
// presets.
// presets: ['react', 'es2015'],
},
},
],

View File

@ -40,13 +40,15 @@
"velocity-animate": "^1.2.3",
"velocity-ui-pack": "^1.2.2"
},
"//babelversion": [
"brief experiments with babel6 seems to show that it generates source ",
"maps which confuse chrome and make setting breakpoints tricky. So ",
"let's stick with v5 for now."
],
"devDependencies": {
"babel": "^5.8.23",
"babel-core": "^6.7.4",
"babel-loader": "^6.2.4",
"babel-preset-es2015": "^6.6.0",
"babel-preset-react": "^6.5.0",
"babel-runtime": "^6.6.1",
"babel-core": "^5.8.38",
"babel-loader": "^5.4.0",
"expect": "^1.16.0",
"json-loader": "^0.5.3",
"karma": "^0.13.22",