From 73f7528d0f313fa5d7bc982cc812b9b2da514faf Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Thu, 31 Mar 2016 16:38:56 +0100 Subject: [PATCH] Use babel 5 for karma tests --- karma.conf.js | 5 ++++- package.json | 12 +++++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/karma.conf.js b/karma.conf.js index e59a6c9e15..89437c203a 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -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'], }, }, ], diff --git a/package.json b/package.json index 6f363462d2..c259700c92 100644 --- a/package.json +++ b/package.json @@ -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",