text: const path = require('path');
  
  module.exports = env => {
  
      return {
          entry: './index.ts',
          devtool: env && env.production ? 'none' : 'source-map',
          module: {
              rules: [
                  {
                      test: /\.tsx?$/,
                      use: 'ts-loader',
                      exclude: /node_modules/,
                  },
              ],
          },
          resolve: {
              extensions: ['.tsx', '.ts', '.js'],
          },
          output: {
              filename: 'index.js'
          },
      };
  };
  