Repository navigation
Build only the debug theme scripts that the tests load - #6092
Open
Eugene (OEvgeny) wants to merge 1 commit into
Open
Eugene (OEvgeny) wants to merge 1 commit into
Eugene (OEvgeny) wants to merge 1 commit into
Conversation
debug-theme is private and only loaded as a script by html2 tests: nothing imports its ESM or CommonJS builds or reads its declaration files. Build the 2 IIFE scripts only and remove the main, types and exports fields that pointed at the other files. Both scripts and their source maps are byte-identical.
Eugene (OEvgeny)
marked this pull request as ready for review
November 27, 2026 02:21
Eugene (OEvgeny)
requested review from
William Wong (compulim),
Chris Whitten (cwhitten) and
Thomas Durnford (tdurnford)
as code owners
November 27, 2026 02:21
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
There are no active review issues for the debug-theme build and package-metadata simplification.
No open issues 🎉
What changed in this PR
Simplifies the private debug-theme package after the tsdown migration, retaining only the two browser scripts loaded by html2 tests.
Changes:
- Builds the development and minified production scripts directly from
applyConfig(), removing unused ESM, CommonJS, and declaration builds. - Removes package entry-point metadata for outputs and exports that are no longer needed.
| File | Description |
|---|---|
packages/debug-theme/tsdown.config.mts |
Replaces dual-format configuration with two script-only IIFE configurations. |
packages/debug-theme/package.json |
Removes main, types, and exports fields from the private package. |
Review effort: Balanced
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog Entry
Not needed: development only (
no-changelog), debug-theme is private.Description
The private debug-theme package is only loaded as a script by html2 tests, but it also built ESM, CommonJS and
.d.tsfiles, declared in itspackage.json, that nothing imports. This pull request builds only the 2 scripts and removes the fields that pointed at the other files.Specific Changes
packages/debug-theme/tsdown.config.mts: only the 2 IIFE configs, fromapplyConfig()instead of the ESM config; both scripts and their source maps are byte-identical in development, production and test buildspackages/debug-theme/package.json: removedmain,typesandexports(its./tsconfig.jsonpointed at a file that does not exist).changelog/<PR#>-<slug>.mdReview Checklist
z-index)package.jsonandpackage-lock.jsonreviewed