old_contents: var path = require('path');
  
  module.exports = {
    entry: path.resolve(__dirname, '../src/client/scripts/client.js'),
    output: {
      path: path.resolve(__dirname, '../dist'),
      filename: 'bundle.js'
    },
  
    module: {
      loaders: [
        {
          test: /src\/.+[.js]$/,
          exclude: /node_modules/,
          loader: 'babel'
        }
      ]
    }
  };
  
new_contents: var path = require('path');
  
  module.exports = {
    entry: path.resolve(__dirname, '../src/client/scripts/client.js'),
    output: {
      path: path.resolve(__dirname, '../dist'),
      filename: 'bundle.js'
    },
  
    module: {
      loaders: [
        {
          test: /src\/.+.js$/,
          exclude: /node_modules/,
          loader: 'babel'
        }
      ]
    }
  };
  
subject: Improve webpack babel test regexp