/* eslint-env node */
module.exports = function(config) {
  config.set({
    basePath: '',

    frameworks: ['mocha'],

    files: [
      'test/**/*.js'
    ],
    preprocessors: {
      'test/**/*.js': ['webpack', 'sourcemap']
    },

    webpack: {
      devtool: 'inline-source-map',
      module: {
        loaders: [
          {
            test: /\.jsx?$/,
            exclude: /node_modules/,
            loader: 'babel-loader?optional=runtime&loose=es6.modules'
          }
        ]
      }
    },

    webpackMiddleware: {
      noInfo: true
    },

    reporters: ['progress'],


    port: 9876,
    colors: true,
    logLevel: config.LOG_INFO,
    autoWatch: true,
    singleRun: false,

    browsers: ['PhantomJS']
  });
};

@@ -432,25 +432,8 @@
 der?
-optional=runtime&
 loos

Drop runtime flag from karma webpack options