Skip to content

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',

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.

1 participant