const path = require('path');

module.exports = {
    mode: 'production',
    output: {
        filename: 'index.js',
        libraryTarget: 'umd',
        library: 'ReactDualListBox',
    },
    resolve: {
        alias: {
            'react-dual-listbox': path.resolve(__dirname, 'src/js/DualListBox'),
        },
    },
    module: {
        rules: [
            {
                test: /\.js?$/,
                exclude: /(node_modules|bower_components|vender_modules)/,
                loader: 'babel-loader',
            },
        ],
    },
};

@@ -436,40 +436,8 @@
 ules
-%7Cbower_components%7Cvender_modules
 )/,%0A

Remove unnecessary Webpack module testing