var path = require('path');
var webpack = require('webpack');

var ignore = new webpack.IgnorePlugin(/^(react)$/);

var uglify = new webpack.optimize.UglifyJsPlugin({
	compress: {
		warnings: false
	}	
});



module.exports = {
	entry: './src/pager.jsx',

	output: {
		path: path.resolve(__dirname, 'dist'),
		filename: 'pager.js',

        libraryTarget: 'umd',
        library: 'Pager'
	},
	
	externals: {
		'react': true
	},

	module: {
		loaders: [
			{
				test: /\.jsx$/,
				loader: 'babel-loader'
			}
		],
	},

	plugins: [
		// ignore, 
		uglify,
	]
};

@@ -60,61 +60,8 @@
 );%0A%0A
-var ignore = new webpack.IgnorePlugin(/%5E(react)$/);%0A%0A
 var 
@@ -148,17 +148,16 @@
 %09%0A%7D);%0A%0A%0A
-%0A
 module.e
@@ -474,34 +474,14 @@
 s: %5B
-%0A%09%09// ignore, %0A%09%09
 uglify
-,%0A%09
 %5D%0A%7D;

Remove ignore plugin