const path = require('path');

module.exports = {
    entry: './src/index.ts',
    output: {
        path: path.resolve(__dirname + '/dist'),
        filename: 'index.js',
        library: 'ReactWhiteboard',
        libraryTarget: 'umd'
    },
    module: {
        rules: [{
            test: /\.tsx?$/,
            exclude: /node_modules/,
            use: {
                loader: 'ts-loader'
            }
        }]
    },
    resolve: {
        extensions: [ '.tsx', '.ts', '.js' ]
    },
    externals: {
        'react': 'react',
        'react-dom': 'react-dom'
    },
    mode: process.env.WEBPACK_SERVE ? 'development' : 'production',
    devtool: 'source-map'
};

@@ -585,52 +585,8 @@
 ode:
- process.env.WEBPACK_SERVE ? 'development' :
  'pr

Set webpack mode to production always