text: const webpack = require('webpack');
  const path = require('path');
  const HardSourceWebpackPlugin = require('hard-source-webpack-plugin');
  const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
  
  module.exports = {
      entry: {
          index: [
              './src/index.ts'
          ]
      },
      output: {
          path: path.resolve(__dirname, 'dist'),
          filename: '[name].js',
          library: 'react-arcgis-js',
          libraryTarget: 'umd',
          umdNamedDefine: true
      },
      externals: {
          'react': {
              root: 'React',
              commonjs2: 'react',
              commonjs: 'react',
              amd: 'react'
          }
      },
      devtool: 'source-map',
      resolve: {
          extensions: ['.webpack.js', '.web.js', '.ts', '.tsx', '.js', '.jsx']
      },
      module: {
          rules: [
              {
                  test: /\.tsx?$/,
                  loader: 'ts-loader',
                  options: {
                      transpileOnly: true
                  }
              },
              { test: /\.js$/, loader: 'source-map-loader', enforce: 'pre' }
          ]
      },
      plugins: [
          new HardSourceWebpackPlugin(),
          new ForkTsCheckerWebpackPlugin()
      ]
  };
  