antfu / esbuild-node-loader

Transpile TypeScript to ESM with Node.js loader.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tsconfig paths support?

seonglae opened this issue · comments

I'm not sure that this module is trying to make compatible with tsconfig.json

When I use esmo, I got some error like this

esmo ./folder/file.ts

My tsconfig.json

{
"paths": {
      "@/*": ["./src/*"],
      "~/*": ["./*"]
  }
}

Because there is

import { func } from '@/module'

This error occurs

Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@/parsers' imported from

Is there a plan to resolve this issue or support usage like this?

Good catch, PR Welcome.