const path = require ( 'path' ) ; module . exports = { context : __dirname , entry : './src/index.ts' , output : { path : path . resolve ( __dirname , 'public' ) , publicPath : '/public' , filename : 'bundle.js' , } , module : { rules : [ { test : /\.ts?$/ , exclude : /node_modules/ , use : { loader : 'ts-loader' , } , } , ] , } , resolve : { extensions : [ '.ts' , '.js' ] , } , } ;