'use strict' ; var path = require ( 'path' ) ; var webpack = require ( 'webpack' ) ; var babelOptions = { "presets" : [ [ "es2015" , { "modules" : false } ] ] } ; module . exports = { mode : 'development' , entry : './src/entry.js' , output : { filename : 'bundle.js' } , module : { rules : [ { test : /\.ts(x?)$/ , exclude : /node_modules/ , use : [ { loader : 'babel-loader' , options : babelOptions } , { loader : 'ts-loader' } ] } , { test : /\.js$/ , exclude : /node_modules/ , use : [ { loader : 'babel-loader' , options : babelOptions } ] } ] } , resolve : { extensions : [ '.ts' , '.tsx' , '.js' ] } , } ; module . exports . resolveLoader = { alias : { 'ts-loader' : path . join ( __dirname , "../../../index.js" ) } } ;