const path = require('path');

module.exports = {
    entry: './js/src/react/index.js',
    module: {
        rules: [
            { test: /\.(js)$/, use: {
                    loader: 'babel-loader',
                    options: {
                        presets: ["@babel/preset-react"]
                    }
                }
            }
        ]
    },
    output: {
        path: path.resolve(__dirname, 'js'),
        filename: 'spbc-react-bundle.js',
    },
    // mode: 'production'
    mode: 'development'
};