You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 12, 2022. It is now read-only.
Now run using this loader, and notice that the error is logged as appearing on line 1:
$ node --loader=esbuild-node-loader test.ts
(node:72676) ExperimentalWarning: --experimental-loader is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
file:///private/tmp/_util/test.ts:1
throw Error("BLARG");
^
Error: BLARG
at file:///private/tmp/_util/test.ts:1:7
...
When running with this loader, stack trace errors are incorrect.
Recipe
Create a basic test file that has a comment in it, like so:
Run using bare node.js and notice the the log output (correctly) says the error is on line 5:
Now run using this loader, and notice that the error is logged as appearing on line 1:
Environment