-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Duplicate esbuild binaries shipped in the VS Code extension #3999
Comments
it seems the esbuild/bin/esbuild binary could be removed, as esbuild will delegate to the specific |
That seems correct. Added a |
@Patrick-Erichsen I would like to contribute. |
Should the esbuild binary be packaged into the vsix package at all? esbuild is configured as 'external' in esbuild.js with the purpose of excluding the package but since esbuild is configured as both 'devDependency' AND 'dependency' in package.json it doesn't get excluded. That's my take on this anyway Documentation says to install esbuild using |
The only reason we bundle esbuild is for users that define a custom config.ts - we are moving away from this pattern and will eventually remove esbuild from the bundle entirely, so this this won't be an issue in the near to mid-term. @Riddhimaan-Senapati - if you'd still like to contribute here are some good first issues:
good-first-issue
Feel free to follow up with me if anything catches your eye! |
@Patrick-Erichsen: When you reverted back to the old esbuild 0.17.19 the vscode package again gets flagged by vulnerability scanners. Lots of warnings. This is what you see when using an off the shelf scanner commonly used in a corp environment: |
I played around with this a bit in the codebase, and it looks like the big culprits are how I also noticed that the build system itself feels like tangled christmas lights, given how all the code for both the VSCode and Intellij platforms are in the same repo. I'm gonna open a new issue to recommend those be broken up into two codebase (and two build systems. |
Before submitting your bug report
Relevant environment info
Description
The Continue vsix ships 2 esbuild 0.17.19 binaries in out/node_modules, wasting an extra ~9MB of bandwidth/space.
To reproduce
No response
Log output
The text was updated successfully, but these errors were encountered: