var path = require ( 'path' ) ; module . exports = { mode : 'development' , entry : './app.ts' , output : { filename : 'bundle.js' } , resolve : { extensions : [ '.ts' , '.js' ] } , module : { rules : [ { test : /\.ts$/ , loader : 'ts-loader' } ] } } ; module . exports . resolveLoader = { alias : { 'ts-loader' : path . join ( __dirname , "../../../index.js" ) } } ;