-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
How to use local esbuild binary in the npm package? #592
Comments
There is already a way to do this because esbuild has to do this during its tests. Look for the function |
If you need more than swapping testing For example, you can clone this repository and open its folder in VS Code. Once you install the {
"name": "build myproject",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}/cmd/esbuild",
"cwd": "/home/me/sources/myproject",
"args": [
"--bundle", "src/entry.js", "--outfile=out/bundle.js"
]
} Then you can place breakpoints to |
|
I am trying to debug an error in esbuild golang code but i cannot find an easy way of using my local esbuild binary in the
esbuild
npm packageMaybe we can add an option
binaryPath
or use an environment variableESBUILD_BINAERY_PATH
as a solution, what do you think?The text was updated successfully, but these errors were encountered: