old_contents: const nodeExternals = require('webpack-node-externals');
  
  module.exports = {
    context: '/src/',
    entry: './index.ts',
    output: {
      path: '/dist/',
      filename: 'index.js',
      libraryTarget: 'commonjs'
    },
    mode: 'production',
    target: 'node',
    externals: [nodeExternals()],
    resolve: {
      mainFields: ['browser', 'main', 'module'],
      extensions: ['.ts', '.tsx', '.js', '.jsx'],
      alias: {
        handlebars: 'handlebars/dist/handlebars.js'
      }
    },
    devtool: 'source-map',
    module: {
      rules: [
        {
          test: /\.tsx?$/,
          loader: 'awesome-typescript-loader'
        },
        {
          test: /\.handlebars/,
          use: 'raw-loader'
        }
      ]
    }
  };
  
new_contents: const nodeExternals = require('webpack-node-externals');
  
  module.exports = {
    context: '/src/',
    entry: './index.ts',
    output: {
      path: '/dist/',
      filename: 'index.js',
      libraryTarget: 'commonjs'
    },
    mode: 'production',
    target: 'node',
    externals: [nodeExternals(), 'graphql'],
    resolve: {
      mainFields: ['browser', 'main', 'module'],
      extensions: ['.ts', '.tsx', '.js', '.jsx'],
      alias: {
        handlebars: 'handlebars/dist/handlebars.js'
      }
    },
    devtool: 'source-map',
    module: {
      rules: [
        {
          test: /\.tsx?$/,
          loader: 'awesome-typescript-loader'
        },
        {
          test: /\.handlebars/,
          use: 'raw-loader'
        }
      ]
    }
  };
  
subject: fix webpack config and set `graphql` as external to avoid it's bundling