diff --git a/babel.coverage.js b/babel.coverage.js deleted file mode 100644 index 6a752a9e52..0000000000 --- a/babel.coverage.js +++ /dev/null @@ -1,9 +0,0 @@ -// This is a Babel config that webpack.coverage.js uses in order to instrument -// code with coverage instrumentation. -const babelConfig = { - plugins: [['babel-plugin-istanbul', { - extension: ['.js', '.vue'] - }]] -}; - -module.exports = babelConfig; diff --git a/webpack.coverage.js b/webpack.coverage.js index cef2c5fe98..9980e14aec 100644 --- a/webpack.coverage.js +++ b/webpack.coverage.js @@ -2,7 +2,6 @@ // instrumentation using babel-plugin-istanbul (see babel.coverage.js) const config = require('./webpack.dev'); -const path = require('path'); const vueLoaderRule = config.module.rules.find(r => r.use === 'vue-loader'); // eslint-disable-next-line no-undef const CI = process.env.CI === 'true'; @@ -34,8 +33,11 @@ config.module.rules.push({ use: { loader: 'babel-loader', options: { + retainLines: true, // eslint-disable-next-line no-undef - configFile: path.resolve(process.cwd(), 'babel.coverage.js') + plugins: [['babel-plugin-istanbul', { + extension: ['.js', '.vue'] + }]] } } });