Skip to content

[web-console] Update web console vite config with dedupe#5797

Merged
anandbraman merged 1 commit intomainfrom
web-console-vite-config-dedupe
Mar 11, 2026
Merged

[web-console] Update web console vite config with dedupe#5797
anandbraman merged 1 commit intomainfrom
web-console-vite-config-dedupe

Conversation

@anandbraman
Copy link
Contributor

Describe Manual Test Plan

Added dedupe to the web-console vite config to ensure that when the support bundle package is installed that common dependencies are resolved from the feldera workspace root

Checklist

  • Unit tests added/updated
  • Integration tests added/updated
  • Documentation updated
  • Changelog updated

Breaking Changes?

Mark if you think the answer is yes for any of these components:

Describe Incompatible Changes

@anandbraman anandbraman force-pushed the web-console-vite-config-dedupe branch from 4f6b920 to 7bd74cb Compare March 11, 2026 16:58
@anandbraman anandbraman enabled auto-merge March 11, 2026 16:58
@anandbraman anandbraman added this pull request to the merge queue Mar 11, 2026
@Karakatiza666
Copy link
Contributor

@anandbraman Why is this necessary? You can leverage the NPM Workspace feature to install a dependency only in the root, and it will be resolved by Bun even for child projects.

@anandbraman
Copy link
Contributor Author

anandbraman commented Mar 11, 2026

@Karakatiza666 the support-bundle-triage package is not a child of feldera js-packages. CI runs into build issues in resolving the dependencies of the package, particularly the triage-types and profiler-lib dependencies. Adding this config resolves the issue. Now, when the support bundle triage package is installed, the dependencies are resolved based on the workspace

Copy link

@mythical-fred mythical-fred left a comment

Choose a reason for hiding this comment

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

LGTM.

Copy link
Contributor

@Karakatiza666 Karakatiza666 left a comment

Choose a reason for hiding this comment

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

This is a decent solution; I don't think it fixes the issue for tools like svelte-check that don't use Vite's module resolution - ideally the conflicting libraries would be installed as peerDependencies in support-bundle-triage.

What I previously mentioned about NPM workspaces indeed can't solve this problem by itself.

Merged via the queue into main with commit f62abd2 Mar 11, 2026
1 check passed
@anandbraman anandbraman deleted the web-console-vite-config-dedupe branch March 11, 2026 19:22
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.

4 participants