swc-node
swc-node copied to clipboard
fix(register): support paths alias with baseUrl
At the moment, swc-node raise an error if we defined paths in tsconfig.json
For example:
{
"compilerOptions": {
"baseUrl": "./src",
"paths": {
"@api/*": ["api/*"]
}
}
}
Error: Cannot find module '../../../../../api/http-service
This pull request is to convert options.paths to absolute paths
possible to get this merged pls?