Skip to content

Port github-authentication extension to use esbuild#298808

Merged
mjbvz merged 2 commits intomicrosoft:mainfrom
mjbvz:dev/mjbvz/occasional-chipmunk
Mar 2, 2026
Merged

Port github-authentication extension to use esbuild#298808
mjbvz merged 2 commits intomicrosoft:mainfrom
mjbvz:dev/mjbvz/occasional-chipmunk

Conversation

@mjbvz
Copy link
Copy Markdown
Collaborator

@mjbvz mjbvz commented Mar 2, 2026

A bit more difficult than others since it requires path mapping

Copilot AI review requested due to automatic review settings March 2, 2026 21:08
@mjbvz mjbvz enabled auto-merge March 2, 2026 21:08
@vs-code-engineering
Copy link
Copy Markdown
Contributor

vs-code-engineering bot commented Mar 2, 2026

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

@TylerLeonhardt

Matched files:

  • extensions/github-authentication/esbuild.browser.mts
  • extensions/github-authentication/esbuild.mts
  • extensions/github-authentication/extension-browser.webpack.config.js
  • extensions/github-authentication/package.json
  • extensions/github-authentication/src/browser/authServer.ts
  • extensions/github-authentication/tsconfig.browser.json

Copy link
Copy Markdown
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

Ports the github-authentication extension’s web build pipeline from webpack to the repo’s shared esbuild extension build tooling, aligning it with how other built-in extensions produce browser bundles.

Changes:

  • Replaces webpack-based compile-web / watch-web scripts with an esbuild.browser.mts build.
  • Removes the browser webpack config and introduces an esbuild browser plugin to remap ./node/* imports to ./browser/*.
  • Adds a browser tsconfig and adjusts packaging ignore rules for the new build scripts.

Reviewed changes

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

Show a summary per file
File Description
extensions/github-authentication/tsconfig.browser.json Adds a browser-specific tsconfig excluding node + tests.
extensions/github-authentication/src/browser/authServer.ts Adds a browser-side export stub for LoopbackAuthServer.
extensions/github-authentication/package.json Switches web build/watch scripts to esbuild.
extensions/github-authentication/extension-browser.webpack.config.js Removes webpack browser config.
extensions/github-authentication/esbuild.mts Converts prior config into an esbuild-based build script for node bundling.
extensions/github-authentication/esbuild.browser.mts Adds esbuild browser build + import remapping plugin.
extensions/github-authentication/.vscodeignore Updates ignore list to exclude esbuild scripts instead of webpack configs.

Comment thread extensions/github-authentication/src/browser/authServer.ts
Comment thread extensions/github-authentication/esbuild.browser.mts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@mjbvz mjbvz merged commit 9507bbb into microsoft:main Mar 2, 2026
18 checks passed
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Apr 16, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants