var config = {
    output: {
        libraryTarget: 'umd',
        library: 'ReactTabs'
    },

    resolve: {
        extensions: ['', '.js'],
        alias: {
            src: __dirname + '/src'
        }
    },

    externals: {
        // Use external version of React
        react: {
            commonjs: 'react',
            commonjs2: 'react',
            amd: 'react',
            root: 'React' // indicates global variable
        }
    },

    module: {
        loaders: [{
            test: /\.js$/,
            loader: 'babel',
            exclude: /node_modules/
        }]
    }
};

module.exports = config;

var config = {
    output: {
        libraryTarget: 'umd',
        library: 'ReactTabs'
    },

    resolve: {
        extensions: ['', '.js'],
        alias: {
            src: __dirname + '/src'
        }
    },

    externals: {
        // Use external version of React
        react: {
            commonjs: 'react',
            commonjs2: 'react',
            amd: 'react',
            root: 'React' // indicates global variable
        },
        'prop-types': {
            commonjs: 'prop-types',
            commonjs2: 'prop-types',
            amd: 'prop-types',
            root: 'PropTypes'
        }
    },

    module: {
        loaders: [{
            test: /\.js$/,
            loader: 'babel',
            exclude: /node_modules/
        }]
    }
};

module.exports = config;

Exclude PropTypes from UMD build
Exclude PropTypes from UMD build
