Example of TypeScript library setup for multiple compilation targets using tsc and webpack
Read about this setup at: Compiling and bundling TypeScript libraries with Webpack.