text: const path = require("path");
  
  module.exports = {
    devtool: "source-map",
    entry: "./widgets.jsx",
    module: {
      rules: [
        {
          exclude: /(node_modules)/,
          test: /\.jsx?$/,
          use: {
            loader: "babel-loader",
            options: {
              presets: ["@babel/env", "@babel/react"],
            },
          },
        },
      ],
    },
    output: {
      filename: "bundle.js",
      path: path.resolve(__dirname),
    },
    resolve: {
      extensions: [".js", ".jsx", "*"],
    },
  };
  