tsc-module-loader
v0.0.1
Published
Mimics the resolution algorithm of the typescript compiler.
Downloads
2,354
Readme
tsc-module-loader
Node.js custom ESM loader that mimics the resolution algorithm of the typescript compiler. It reads your tsconfig.json file, so it doesn't require custom configuration.
It solves a common issue and complaint among TypeScript developers.
A current solution is to use [tsc-alias] as a post-compile step but it can have some bugs and requires custom configuration.
Warning: custom ESM loaders are currently an experimental feature.
Usage
npm install --save tsc-loader
node --experimental-loader tsc-loader build/some-file.js
Alternatively, you can register the loader programmatically in your code.