Repository navigation
feat: compare generated output with an esnext baseline - #480
Merged
Merged
Conversation
Contributor
Wait for baseline compilation and updated props before starting both sandboxes. Opening a saved Compare URL still waits for a user action.
Dunqing
force-pushed
the
feat/compare-output
branch
from
November 12, 2026 14:35
a33a570 to
5f0f915
Compare
Contributor
Clicking Compare always starts a comparison and stays active, so it reads Recompare once a comparison has run. Run output executes the output alone and returns to the single console, replacing the mode toggle that cleared the results when clicked a second time.
Contributor
Render the output console once across execution modes, derive completion from activity messages, and avoid deep-cloning baseline defaults on every source edit.
Keep the previous result visible while buffering the current run. Replace it on completion, failure, or Stop, and discard unfinished results when source edits invalidate the run. Clear removes displayed and buffered entries. Hide running and waiting labels and delay transient execution controls so quick reruns do not flash intermediate states.
Contributor
Show a spinner and Running or Comparing on the active action after 150ms, without adding running indicators to the output consoles. Give both actions a pressed response and accessible busy state while preserving the previous output until execution finishes.
Contributor
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.
Add Compare beside Run output. Run output executes the generated code; Compare executes the same source as an esnext baseline alongside the configured output. Each side has an independent sandbox, console, and status. Compare stays active, so it reads Recompare after a comparison, and Run output returns to the single output console.
The baseline shares the parser settings, lowers TypeScript/JSX, and disables minification, define/inject replacements, and optional transforms. It is compiled only while Compare is active. The active mode is saved in share URLs.
Builds on the runner merged in oxc-project/playground#478. Run remains available without pre-run validation. The manifest and lockfile are unchanged.
Validation:
AI assistance was used for implementation and verification.