Skip to content

thetutlage/imr-issue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Import meta resolve with loaders

The repo reproduces the issue where import-meta-resolve package fails to resovle a TypeScript file when provided extension has .js.

Environment

node -v
# v19.5.0

There are two files in this repo.

  • main.ts - Uses the import-meta-resolve package
  • main-native.ts - Uses the import.meta.resolve API.

Run the examples as follows to reproduce the issue.

Works

node --loader=ts-node/esm --experimental-import-meta-resolve main-native.ts

Does not work

node --loader=ts-node/esm main.ts

About

Reproducing a small issue

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published