UPDATE: This technique demonstrated in this repository will work, but you should probably use either:
Read this blog post for more information.
ESRI JSAPI with Webpack demo, using TypeScript
Generates separate app and vendor bundles via webpack, while pulling in the ESRI JSAPI and dojo via CDN.
Uses TypeScript compiler and test setup using karma.
npm install
npm start
npm test