It is really hard to set breakpoints and step through code in Vue. I think this is because of the transpiling of javascript ES6/ES2015/ES2016/ES2017 to ES5. The source maps are mildly useful, but often when I "step" through, the cursor jumps around, leading me back to console.log debugging.
Since Chrome supports most of the latest features, I'd like to disable most or all transpiling for development.
I think what I need to do is add transpileOptions to vue-loader.conf.js (shown here):
var config = require('../config')
var isProduction = process.env.NODE_ENV === 'production'
module.exports = {
loaders: utils.cssLoaders({
sourceMap: isProduction
? config.build.productionSourceMap
: config.dev.cssSourceMap,
extract: isProduction
})
}
Here are the Vue docs on transpilerOptions. The doc basically punts, and says, hey, refer to the Buble options.
I'm not sure how to proceed. Has anybody successfully disabled most transpiling for easier debugging?