Skip to content

Xmaxer/tsconfig-paths-esm-loader

Repository files navigation

Code primarily taken from TypeStrong/ts-node#1450 (comment)

What is this?

A custom Typescript ESM loader that allows you to run projects locally while using Typescript paths

Use with ESM modules only.

Installation & Usage

Installation

npm install -d tsconfig-paths-esm-loader
yarn add --dev tsconfig-paths-esm-loader

Usage

When running an ESM project in development, you can do it like this:

node --loader tsconfig-paths-esm-loader/loader.mjs path/to/entryFile{.ts,.mts}

Where path/to/entryFile{.ts,.mts} is simply your entry file like main.ts or main.mts

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published