'use strict';

module.exports = {

	entry: './src/index.js',

	output: {
		path: 'dist',
		filename: 'index.js'
	},

	target: 'node',

	module: {
		loaders: [
			{test: /\.coffee$/, loader: 'coffee-loader'},
			{
				test: /\.js/,
				loader: 'babel',
				exclude: /node_modules/,
				query: {
					presets: ['es2015']
				}
			}
		]
	}

};

'use strict';

module.exports = {

	entry: './src/index.js',

	output: {
		path: 'dist',
		filename: 'index.js',
		libraryTarget: 'commonjs2'
	},

	target: 'node',

	module: {
		loaders: [
			{test: /\.coffee$/, loader: 'coffee-loader'},
			{
				test: /\.js/,
				loader: 'babel',
				exclude: /node_modules/,
				query: {
					presets: ['es2015']
				}
			}
		]
	}

};

Update webpack to output libraryTarget commonjs2
Update webpack to output libraryTarget commonjs2
