Skip to content

Comments

chore(infra/vscode): switch esbuild to rolldown#13737

Merged
Boshen merged 1 commit intooxc-project:mainfrom
hikomoon:infra_vscode
Sep 15, 2025
Merged

chore(infra/vscode): switch esbuild to rolldown#13737
Boshen merged 1 commit intooxc-project:mainfrom
hikomoon:infra_vscode

Conversation

@hikomoon
Copy link
Contributor

impl #13474

If there are any changes that are inappropriate, please let me know, I'd be happy to contribute a little bit from here on out ☺️

@hikomoon hikomoon requested a review from camc314 as a code owner September 13, 2025 08:22
Copilot AI review requested due to automatic review settings September 13, 2025 08:22
@graphite-app
Copy link
Contributor

graphite-app bot commented Sep 13, 2025

How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

@github-actions github-actions bot added A-editor Area - Editor and Language Server C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior labels Sep 13, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR replaces esbuild with rolldown as the bundler for the VS Code extension, implementing issue #13474. The change maintains the same build output while switching to the new bundler.

Key changes:

  • Replace esbuild CLI commands with rolldown configuration files
  • Update package.json dependencies to use rolldown instead of esbuild
  • Create separate configurations for main build and test build processes

Reviewed Changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.

File Description
editors/vscode/rolldown.config.ts Main rolldown configuration for building the extension
editors/vscode/rolldown.config.test.ts Rolldown configuration for building test files
editors/vscode/package.json Updated scripts and dependencies to use rolldown
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@camc314 camc314 self-assigned this Sep 13, 2025
@Boshen Boshen requested a review from Sysix September 13, 2025 15:13
@Sysix Sysix assigned Sysix and unassigned camc314 Sep 13, 2025
Copy link
Member

@Sysix Sysix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the work ❤️

I have some NIT's. Please use version 1.0.0-beta.35, the bot does not know it better it this case ;)
I tried beta37 but locally, I get this error:

Error: Cannot find native binding. npm has a bug related to optional dependencies (npm/cli#4828). Please try npm i again after removing both package-lock.json and node_modules directory.
at file:///home/sysix/dev/oxc/node_modules/.pnpm/rolldown@1.0.0-beta.37/node_modules/rolldown/dist/shared/parse-ast-index-B5HcAOhq.mjs:10578:35

@hikomoon
Copy link
Contributor Author

got it, thanks for your review 🩵

@Boshen Boshen assigned Boshen and unassigned Sysix Sep 15, 2025
@Boshen Boshen merged commit de8e7a1 into oxc-project:main Sep 15, 2025
18 checks passed
@Boshen
Copy link
Member

Boshen commented Sep 15, 2025

Thank you for the initiative ❤️

graphite-app bot pushed a commit that referenced this pull request Sep 19, 2025
Boshen pushed a commit to oxc-project/oxc-vscode that referenced this pull request Feb 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-editor Area - Editor and Language Server C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants