const path = require('path'); module.exports = { entry: "./src/state-card-custom-cover.ts", output: { filename: 'state-card-custom-cover.js', path: path.resolve(__dirname, 'dist') }, resolve: { extensions: [".tsx", ".ts", ".js", ".json"] }, module: { rules: [ // all files with a '.ts' or '.tsx' extension will be handled by 'ts-loader' {test: /\.tsx?$/, use: ["ts-loader"], exclude: /node_modules/} ] }, mode: "production" }