const TsDeclarationWebpackPlugin = require('ts-declaration-webpack-plugin');
 
module.exports = {
    entry: {
        app: './src/main.ts',
        component: './src/component.tsx',
    },
    output: {
        path: path.resolve('./dist'),
        filename: '[name].js',
    },
    plugins: [
        new TsDeclarationWebpackPlugin(),
    ]
}