module.exports = function (config) {
  config.set({
    basePath: '',
    frameworks: ['mocha', 'chai', 'sinon', 'fixture'],
    files: [
      'node_modules/jquery/dist/jquery.min.js',
      'test/fixture/**/*.html',
      'test/entry.js'
    ],
    preprocessors: {
      '**/*.html': ['html2js'],
      'test/entry.js': ['webpack', 'sourcemap']
    },
    webpackMiddleware: { noInfo: true },
    webpack: {
      devtool: 'inline-source-map',
      externals: {
        'jquery': '$'
      },
      module: {
        preLoaders: [
          { test: /\.js$/, exclude: /node_modules/, loader: 'babel-loader' },
          { test: /\.js$/, include: /jump/, loader: 'babel-loader' },
          {
            test: /\.js$/,
            include: /src\/js/,
            loader: 'babel-istanbul',
            query: { cacheDirectory: true }
          }
        ]
      }
    },
    reporters: ['notify', 'nyan', 'coverage'],
    coverageReporter: {
      dir: 'coverage',
      reporters: [
        {type: 'html'},
        {type: 'lcovonly', subdir: '.'},
        {type: 'json', subdir: '.'}
      ]
    },
    port: 9876,
    colors: true,
    logLevel: config.LOG_INFO,
    autoWatch: true,
    browsers: ['PhantomJS'],
    singleRun: false,
    concurrency: Infinity
  })
}

@@ -518,17 +518,12 @@
     
-preLoader
+rule
 s: %5B
@@ -526,32 +526,44 @@
 s: %5B%0A          %7B
+%0A           
  test: /%5C.js$/, 
@@ -561,16 +561,28 @@
 /%5C.js$/,
+%0A           
  exclude
@@ -598,16 +598,56 @@
 odules/,
+%0A            enforce: 'pre',%0A           
  loader:
@@ -653,32 +653,42 @@
 : 'babel-loader'
+%0A         
  %7D,%0A          %7B 
@@ -686,16 +686,28 @@
        %7B
+%0A           
  test: /
@@ -713,16 +713,28 @@
 /%5C.js$/,
+%0A           
  include
@@ -742,16 +742,56 @@
  /jump/,
+%0A            enforce: 'pre',%0A           
  loader:
@@ -805,16 +805,26 @@
 -loader'
+%0A         
  %7D,%0A    
@@ -886,24 +886,52 @@
  /src%5C/js/,%0A
+            enforce: 'pre',%0A
             
@@ -953,16 +953,23 @@
 istanbul
+-loader
 ',%0A     

update syntax for karma configuration file