Tracing Errors Using Karma + Babel + Webpack With Bundles
Using karma + babel + webpack to run ES6 unit tests. I use a webpack bundle to locate and transpile the ES6. It all works, but whenever there is an error in any test file I get mes
Solution 1:
Set devtool to eval in webpack. It works for me. Will give you correct file name with line no. Read more here http://webpack.github.io/docs/configuration.html#devtool
webpack: {
devtool: 'eval',
module: {
loaders: [{
test: /\.js/,
exclude: /node_modules/,
loader: "babel-loader?cacheDirectory&optional[]=runtime"
}]
},
watch: true
},
Post a Comment for "Tracing Errors Using Karma + Babel + Webpack With Bundles"