const path = require('path'); module.exports = { entry: { eosjs_api: './src/eosjs-api.ts', eosjs_jsonrpc: './src/rpc-web.ts', eosjs_jssig: './src/eosjs-jssig.ts', eosjs_numeric: './src/eosjs-numeric.ts', }, mode: 'production', module: { rules: [ { test: /\.tsx?$/, use: { loader: 'ts-loader', options: { configFile: 'tsconfig.web.json' } }, exclude: /node_modules/, } ] }, resolve: { extensions: ['.tsx', '.ts', '.js'] }, output: { filename: x => x.chunk.name.replace('_', '-') + '.js', library: '[name]', path: path.resolve(__dirname, 'dist-web'), } };