const path = require('path'); module.exports = { entry: './index.js', devtool: 'inline-source-map', mode: 'development', module: { rules: [ { test: /\.jsx?$/, use: 'babel-loader', exclude: /node_modules/, } ] }, resolve: { extensions: [".js"] }, output: { filename: 'bundle.js', path: path.resolve(__dirname, 'dist'), } };