tsconfig paths support?
seonglae opened this issue · 1 comments
seonglae commented
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?
antfu commented
Good catch, PR Welcome.