-
-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sourcemaps are broken for @swc-node/register/esm #719
Comments
This also impacts debugging through VSCode's built in debugger, which relies on sourcemaps. |
This finally bothered me enough so I took a look. Finding: swc-node/packages/register/register.ts Line 115 in e34f006
installSourceMapSupport to enable source map support.
I then tried adding the following in export async function initialize() {
console.log("This function is indeed called without error, but source map does not apply");
installSourceMapSupport();
} Solution: $ node --enable-source-maps --loader @swc-node/register/esm index.ts |
Yep, stumbled upon this too. @Xinkai thank you for a great workaround. Happy new year :) |
index.ts:
@swc-node/register gives us sourcemap support:
But @swc-node/register/esm does not:
The text was updated successfully, but these errors were encountered: