-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
minor: Update npm deps #9179
minor: Update npm deps #9179
Conversation
r? @matklad I didn't update
We might as well switch to |
editors/code/.vscodeignore
Outdated
!out | ||
out/** | ||
!out/src | ||
!out/src/main.js |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So what exactly are we pulling in from out
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The out/src
dir. By the way !out/src/main.js
is not necessary if you have !out/src
but not out/src/**
.
Status: this is marked as a draft because it breaks loading the extension. I didn't notice it because there's no error thrown. |
r? @matklad |
Scheduled for r+ on Monday! |
bors r+ |
Very mysterious bug. It's worth noting that this blocks updating rollup itself. If you update to Sorry to ping you on this old issue, I just thought it might save you some debugging in the future because it was fairly tricky to chase down. |
Thanks for the ping, though I'll probably forget by then. Anyway, as a non-web developer, the whole JS bundler ecosystem seems Kafkaesque. |
One morning, as Gregor Samsa was waking up from anxious dreams, he discovered that his bed had been moved into |
Curiously, the docs now put esbuild to the first place: https://code.visualstudio.com/api/working-with-extensions/bundling-extension#using-esbuild I wonder if we should switch to that? On the one hand, I wouldn't want to pull yet another ecosystem (esbuild is in go), on the other hand, the pain with rollup/webpack is real, and the example in the docs does seem nice. Fun fact: esbuild could have been written in Rust, but there was this blockin issue. |
horror! 😂 I can try to integrate esbuild in the coming week, if this is something you feel is worth pursuing. Also, that is a neat bit of trivia about esbuild. I wonder if swc has ever run into the same thing. |
If it means less npm deps in
Oh. |
It would still reduce the number of dependencies because it has no dependencies of its own.
For what it's worth, it wouldn't require Go as a build dependency. |
9832: vscode extension: use esbuild instead of rollup. r=matklad a=yaymukund This shaves a couple seconds off our build & trims npm dependencies. I tested it using VSCode's "Install [Extension] from VSIX" option and it seems to work. Note that it changes the root of the package from `out/src/main → out/main`. Fell out of the discussion in #9179 Co-authored-by: Mukund Lakshman <yaymukund@gmail.com>
No description provided.