0.0.1 • Published 8 months ago

tsc-module-loader v0.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

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.