tsc-module-loader
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

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.

Dependents (1)

Package Sidebar

Install

npm i tsc-module-loader

Weekly Downloads

476

Version

0.0.1

License

MIT

Unpacked Size

10.9 kB

Total Files

14

Last publish

Collaborators

  • olalonde