Skip to content

fix: vue-json-viewer import#1848

Merged
pedrolamas merged 1 commit into
fluidd-core:developfrom
pedrolamas:pedrolamas/fix-1847
May 19, 2026
Merged

fix: vue-json-viewer import#1848
pedrolamas merged 1 commit into
fluidd-core:developfrom
pedrolamas:pedrolamas/fix-1847

Conversation

@pedrolamas

Copy link
Copy Markdown
Member

When we upgraded to Vite 8 in d293289, that caused any UMD import to fail as Rolldown (Vite 8) doesn't auto-unwrap __esModule CJS modules.

This fixes the problem by adding a manual unwrap.

Fixed #1847

Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
@pedrolamas pedrolamas added this to the 1.37.1 milestone May 19, 2026
@pedrolamas pedrolamas requested a review from Copilot May 19, 2026 17:48
@pedrolamas pedrolamas added the GH - Bug Something isn't working label May 19, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Fixes the Diagnostics “Metrics Explorer” / state viewer rendering regression introduced by the Vite 8 (Rolldown) upgrade, where importing vue-json-viewer returns a module wrapper instead of the Vue component.

Changes:

  • Switch vue-json-viewer import to a module import and manually unwrap the default export when present.
  • Keep the component registration compatible with both CJS/UMD and ESM-style exports under Rolldown.

@pedrolamas pedrolamas merged commit 242e266 into fluidd-core:develop May 19, 2026
8 checks passed
@pedrolamas pedrolamas deleted the pedrolamas/fix-1847 branch May 19, 2026 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

GH - Bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Metrics Explorer in Diagnostics page has stopped working

2 participants