text: const path = require('path');
  
  /* eslint-disable import/no-extraneous-dependencies */
  const webpack = require('webpack');
  const nodeExternals = require('webpack-node-externals');
  /* eslint-enable import/no-extraneous-dependencies */
  
  
  module.exports = {
    mode: 'production',
    entry: './index.js',
    target: 'node',
    output: {
      path: path.join(__dirname, 'dist'),
      filename: 'index.js'
    },
    devtool: 'source-map',
    externals: nodeExternals(),
    node: {
      __filename: true,
      __dirname: true
    },
    plugins: [
      new webpack.BannerPlugin({
        banner: 'require("source-map-support").install({environment: \'node\'});',
        raw: true,
        entryOnly: false
      }),
      new webpack.DefinePlugin({
        'process.env': {
          NODE_ENV: JSON.stringify('production')
        }
      })
    ],
    resolve: {
      extensions: ['.js']
    },
    module: {
      rules: [{
        test: /\.js$/,
        exclude: path.join(__dirname, 'node_modules'),
        use: {
          loader: 'babel-loader'
        }
      }]
    }
  };
  