Skip to content

fix: Fixes dev pages for internal build - #290

Merged
pan-kot merged 1 commit into
mainfrom
fix-dev-pages
Nov 27, 2026
Merged

pan-kot merged 1 commit into
mainfrom
fix-dev-pages

Conversation

@pan-kot

@pan-kot pan-kot commented Nov 27, 2026

Copy link
Copy Markdown
Member

Description

Pages built from the dev pages bundle crash on load with Calling `require` for "react" in an environment that doesn't expose the `require` function.

  • Only "react" was external, so react-dom and react/jsx-runtime were inlined with their require("react") calls. Vite 8 (rolldown) can't turn those calls into imports, so they throw in the browser.
  • /^highcharts(^|\/)/ never matched highcharts, so Highcharts core was inlined.

This change externalizes react and react-dom (including subpaths) and fixes the rule to /^highcharts($|\/)/.

Review checklist

The following items are to be evaluated by the author(s) and the reviewer(s).

Correctness

  • Changes include appropriate documentation updates.
  • Changes are backward-compatible if not indicated, see CONTRIBUTING.md.
  • Changes do not include unsupported browser features, see CONTRIBUTING.md.
  • Changes were manually tested for accessibility, see accessibility guidelines.

Security

Testing

  • Changes are covered with new/existing unit tests?
  • Changes are covered with new/existing integration tests?

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@pan-kot
pan-kot requested a review from a team as a code owner November 27, 2026 19:36
@pan-kot
pan-kot requested review from NathanZlion and removed request for a team November 27, 2026 19:36
@pan-kot
pan-kot enabled auto-merge November 27, 2026 19:36
@codecov

codecov Bot commented Nov 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.99%. Comparing base (507b14c) to head (e7124d1).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #290   +/-   ##
=======================================
  Coverage   93.99%   93.99%           
=======================================
  Files          64       64           
  Lines        3529     3529           
  Branches     1051     1118   +67     
=======================================
  Hits         3317     3317           
  Misses        212      212           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@pan-kot
pan-kot added this pull request to the merge queue Nov 27, 2026
Merged via the queue into main with commit 390248b Nov 27, 2026
46 of 47 checks passed
@pan-kot
pan-kot deleted the fix-dev-pages branch November 27, 2026 21:32

This branch was successfully deployed

1 active deployment
dev-pages — e7124d17 Deployed Nov 27, 2026 by pan-kot via deploy / deploy #1393
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