A fork of TypeStrong's ts-loader.
Additional feature emitOnly which lets you compile typescript while only emiting definitions for a discrete set of files.
module: {
rules: [
{
loader: '@maxchehab/ts-loader',
options: {
emitOnly: [/\.entity.*/],
},
},
],
},Yet to benchmark, but expect similar performance benefits of the transpileOnly flag.
Hash: bc3eade0c1913aa45074
Version: webpack 4.43.0
Time: 82346ms
Built at: 05/02/2020 11:48:58 PMHash: 6637ee52048fc3864106
Version: webpack 4.43.0
Time: 8095ms
Built at: 05/02/2020 11:45:33 PMMIT License