Skip to content

Adopt esbuild for bundling more builtin extensions#294227

Merged
mjbvz merged 3 commits intomainfrom
dev/mjbvz/mid-rook
Feb 11, 2026
Merged

Adopt esbuild for bundling more builtin extensions#294227
mjbvz merged 3 commits intomainfrom
dev/mjbvz/mid-rook

Conversation

@mjbvz
Copy link
Collaborator

@mjbvz mjbvz commented Feb 10, 2026

Follow up on #294208

Will let that PR cook a day or so before merging this in too. Also creating full build for testing

Copilot AI review requested due to automatic review settings February 10, 2026 20:40
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 migrates three built-in extensions from webpack to esbuild for bundling: mermaid-chat-features, media-preview, and markdown-math. This follows the pattern established in PR #294208 which migrated the markdown-language-features extension.

Changes:

  • Replaced webpack configurations with esbuild configurations for Node.js and browser builds
  • Updated ESLint configuration to use more specific file patterns for the migrated extensions

Reviewed changes

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

Show a summary per file
File Description
extensions/mermaid-chat-features/extension-browser.webpack.config.js Deleted webpack browser configuration (replaced by esbuild-browser.ts)
extensions/mermaid-chat-features/esbuild.ts Added esbuild configuration for Node.js builds
extensions/mermaid-chat-features/esbuild-browser.ts Added esbuild configuration for browser builds with process.* defines
extensions/media-preview/extension.webpack.config.js Deleted webpack configuration (replaced by esbuild.ts)
extensions/media-preview/esbuild.ts Added esbuild configuration for Node.js builds
extensions/media-preview/esbuild-browser.ts Added esbuild configuration for browser builds with process.* defines
extensions/markdown-math/extension-browser.webpack.config.js Deleted webpack browser configuration (replaced by esbuild-browser.ts)
extensions/markdown-math/esbuild.ts Added esbuild configuration for Node.js builds
extensions/markdown-math/esbuild-browser.ts Added esbuild configuration for browser builds with process.* defines
eslint.config.js Updated file patterns from wildcards to specific paths for the migrated extensions
Comments suppressed due to low confidence (1)

eslint.config.js:2071

  • The glob pattern 'extensions/mermaid-chat-features/src/.ts' only matches TypeScript files directly in the src directory, but the extension has subdirectories like 'src/util/' with TypeScript files. This pattern should be 'extensions/mermaid-chat-features/src/**/.ts' to match all TypeScript files recursively.
			'extensions/mermaid-chat-features/src/*.ts',

@mjbvz mjbvz marked this pull request as ready for review February 11, 2026 18:53
@mjbvz
Copy link
Collaborator Author

mjbvz commented Feb 11, 2026

Tested latest insiders that uses esbuild for bundling markdown on both desktop and web. Everything seem to work well so far so going ahead with the next batch of extensions

@vs-code-engineering vs-code-engineering bot added this to the February 2026 milestone Feb 11, 2026
@mjbvz mjbvz merged commit bfa944f into main Feb 11, 2026
18 checks passed
@mjbvz mjbvz deleted the dev/mjbvz/mid-rook branch February 11, 2026 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants