const path = require('path');

// This config file is used to create a webpack bundle that we use on
// spec/performance-test.html to profile the performance footprint of the
// component.
module.exports = {
  entry: path.join(__dirname, 'spec/performance-test.jsx'),
  output: {
    path: path.join(__dirname, 'build'),
    filename: 'performance-test.js'
  },
  resolve: {
    extensions: ['.js', '.jsx', '.json']
  },
  module: {
    rules: [
      {
        test: /\.jsx?/,
        exclude: /node_modules/,
        loader: 'babel-loader',
      },
    ],
  },
};

const path = require('path');

// This config file is used to create a webpack bundle that we use on
// spec/performance-test.html to profile the performance footprint of the
// component.
module.exports = {
  entry: path.join(__dirname, 'spec/performance-test.jsx'),
  output: {
    path: path.join(__dirname, 'build'),
    filename: 'performance-test.js'
  },
  resolve: {
    extensions: ['.js', '.jsx', '.json']
  },
  devtool: 'source-map',
  module: {
    rules: [
      {
        test: /\.jsx?/,
        exclude: /node_modules/,
        loader: 'babel-loader',
      },
    ],
  },
};

Add source-map to perf-test webpack bundle
Add source-map to perf-test webpack bundle

This will make it easier to debug things.
