diff --git a/config/babel.js b/config/babel.js index 92d2a25fc..10bb88b29 100644 --- a/config/babel.js +++ b/config/babel.js @@ -1,6 +1,5 @@ 'use strict' module.exports = { - presets: [require.resolve('babel-preset-es2015')], - plugins: [require.resolve('babel-plugin-transform-runtime')] + presets: [require.resolve('babel-preset-es2015')] } diff --git a/config/karma.conf.js b/config/karma.conf.js index 6718e0169..44ec2d414 100644 --- a/config/karma.conf.js +++ b/config/karma.conf.js @@ -32,7 +32,7 @@ module.exports = function (config) { ], exclude: [], preprocessors: { - 'test/**/*': ['webpack'] + 'test/**/*': ['webpack', 'sourcemap'] }, webpack: webpackConfig.dev, webpackMiddleware: { diff --git a/config/webpack.js b/config/webpack.js index c99ec3e1b..0021179a8 100644 --- a/config/webpack.js +++ b/config/webpack.js @@ -108,7 +108,7 @@ const shared = { } const dev = _.defaultsDeep({}, shared, { - devtool: 'source-map', + devtool: 'inline-source-map', debug: true }, specific) diff --git a/package.json b/package.json index 38bb7d203..591aa33e4 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,6 @@ "args-parser": "^1.0.2", "babel-core": "^6.7.4", "babel-loader": "^6.2.4", - "babel-plugin-transform-runtime": "^6.6.0", "babel-polyfill": "^6.7.4", "babel-preset-es2015": "^6.6.0", "brfs": "^1.4.3", @@ -58,6 +57,7 @@ "karma-mocha": "^0.2.2", "karma-mocha-own-reporter": "^1.1.2", "karma-phantomjs-launcher": "^1.0.0", + "karma-sourcemap-loader": "^0.3.7", "karma-webpack": "^1.7.0", "lodash": "^4.8.2", "mocha": "^2.4.5",