I found a problem in my app structure and build process using WebPack, TypeScript, and TS-Loader that I thought was caused by TypeScript 2.1.4, but apparently was there the whol
You can work around this bug by specifying the option onlyCompileBundledFiles
in your webpack.config.js
like so
module: {
rules: [
{
test: /\.tsx?/,
use: [{loader: 'ts-loader', options: {onlyCompileBundledFiles: true}}],
}
],
},
I still find it astonishing that ts-loader is broken by default, but at least there's a workaround.