text: const nodeExternals = require('webpack-node-externals')
  
  module.exports = {
    mode: 'development',
    target: 'node',
    devtool: 'source-map',
    entry: './src/server/index.js',
    externals: [
      nodeExternals()
    ],
    output: {
      filename: 'server.js'
    },
    module: {
      rules: [{
        test: /.js$/,
        exclude: /node_modules/,
        use: {
          loader: 'babel-loader',
          options: {
            presets: ['es2015']
          }
        }
      }]
    }
  }
  