module.exports = {
  entry: './src/index.js',
  output: {
    filename: 'index.js',
    path: './lib',
    libraryTarget: "commonjs"
  },
  module: {
    loaders: [
      {
        test: /\.jsx?$/,
        exclude: /(node_modules|bower_components)/,
        loader: 'babel'
      }
    ]
  },
  externals: [
    'glob'
  ],
  target: 'node'
}

@@ -124,16 +124,17 @@
 commonjs
+2
 %22%0A  %7D,%0A 

webpack libraryTarget should be commonjs2 not commonjs