const path = require('path'); const webpack = require('webpack'); module.exports = { mode: 'production', entry: './src/index.js', output: { // UMD rather than a bare global, so the bundle works from a