var path = require('path');
var webpackConfig = require('../webpack.config.js');

var defaultResolve = webpackConfig.resolve;

function noddyClone(obj) {
  return JSON.parse(JSON.stringify(obj));
}

var buildResolve = noddyClone(defaultResolve);
buildResolve.modules.push('src/');

var testConfig = {
  entry: './tests/runner.js',
  output: {
    path: path.join(__dirname, '../dist'),
    filename: 'tests.js',
  },
};

module.exports = {
  options: webpackConfig,
  build: {
    resolve: buildResolve,
  },
  buildwatch: {
    watch: true,
    keepalive: true,
    resolve: buildResolve,
  },
  test: {
    entry: testConfig.entry,
    output: testConfig.output,
    resolve: buildResolve,
  },
  coverage: {
    entry: testConfig.entry,
    output: testConfig.output,
    resolve: buildResolve,
    module: {
      rules: [
        {
          use: 'babel-istanbul-loader',
          // babel options are in .babelrc
          exclude: /(node_modules|bower_components|tests)/,
          enforce: 'pre',
          test: /\.js$/,
        },
      ],
    },
  },
};

@@ -531,24 +531,41 @@
 atch: true,%0A
+    cache: true,%0A
     keepaliv

Set explicit caching when watching