// This file extends the webpack.dev.js config to add istanbul coverage // instrumentation using babel-plugin-istanbul (see babel.coverage.js) const config = require('./webpack.dev'); const vueLoaderRule = config.module.rules.find(r => r.use === 'vue-loader'); // eslint-disable-next-line no-undef const CI = process.env.CI === 'true'; config.devtool = CI ? false : undefined; vueLoaderRule.use = { loader: 'vue-loader' // Attempt to use Babel with babel-plugin-istanbul // TODO The purpose of this was to try to add coverage to JS expressions // inside `