module.exports = {
  entry: './src/index.js',
  output: {
    path: './dist',
    filename: 'hyperline.js'
  },
  module: {
    loaders: [
      {
        test: /\.js$/,
        loader: 'babel',
        exclude: /node_modules/,
        query: {
          presets: ['es2015']
        }
      }
    ]
  }
};

module.exports = {
  entry: './src/index.js',
  output: {
    path: './dist',
    filename: 'hyperline.js',
    libraryTarget: "commonjs"
  },
  module: {
    loaders: [
      {
        test: /\.js$/,
        loader: 'babel',
        exclude: /node_modules/,
        query: {
          presets: ['es2015']
        }
      }
    ]
  }
};

Set webpack libraryTarget to commonjs
Set webpack libraryTarget to commonjs
