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
@digitak/esrun ^3.2.24 (3.2.25 is not available via npm)
esbuild ^0.17.18
If I use the VSCode debugger with these settings in my launch.json the output is also correct. It uses esbuild-register, can esrun also be used for this task, then I would need one dependency less in my setup?
to reproduce
@digitak/esrun
type:module
to yourpackage.json
test.ts
file with one lineconsole.log(import.meta.url)
esrun
, notice the output isundefined
node_modules/.bin/esrun test.ts # undefined
expected result
esbuild
and run thetest.ts
withesbuild
node_modules/.bin/esbuild test.ts --bundle --format=esm --platform=node --outfile=build.js --loader:.ts=ts node build.js # file:///Users/paria/Developer/esrun_test/build.js
workaround
__dirname
and__filename
additional notes
3.2.25
is not available via npm)VSCode
debugger with these settings in mylaunch.json
the output is also correct. It usesesbuild-register
, canesrun
also be used for this task, then I would need one dependency less in my setup?related
The text was updated successfully, but these errors were encountered: