const TsDeclarationWebpackPlugin = require('ts-declaration-webpack-plugin');
const path = require('path');

module.exports = {
    entry: {
        app: './src/index.ts',
    },
    output: {
        path: path.resolve('./dist'),
        filename: '[name].js',
    },
    plugins: [
        new TsDeclarationWebpackPlugin(),
    ]
}

module.exports = {
    entry: {
        app: './src/index.ts',
    },
    output: {
        path: path.resolve('./dist'),
        filename: '[name].js',
    },
    module: {
      rules: [
        {
          test: /\.tsx?$/,
          use: 'ts-loader',
          exclude: /node_modules/,
        },
      ],
    },
    resolve: {
      extensions: ['.tsx', '.ts', '.js'],
    },
  };