test: cover template literal concatenation minification#1
Draft
vercel-gh-bot-3[bot] wants to merge 1 commit into
Draft
Conversation
vercel-gh-bot-3
Bot
force-pushed
the
next-maintainer-agent/issue-95900-5e86f82fca50
branch
from
July 23, 2026 01:48
eb3e022 to
7aac8aa
Compare
Adds a focused regression test for vercel#95900 using the public SWC minify binding.
vercel-gh-bot-3
Bot
changed the base branch from
next-maintainer-agent/base-163e45e401df
to
e2e/upstream-canary-95900-v2
July 23, 2026 01:48
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.
Summary
Adds a focused unit regression test for template-literal concatenation during SWC minification. The test uses the public
minify()binding with the validated trigger—two interpolated template literals followed by a dynamic suffix—and asserts that the left template's trailingLTAIL>quasi remains in the folded output.This is test-only and does not include a product fix.
Issue: vercel#95900
Validated behavior
The reporter reproduction was validated unchanged at
dd667193b811bfe8a9942da299ddeba441e00f3d:export function f(o){return"A640B400<r 640RTAIL>"+o}, droppingLTAIL>.export function f(o){return"A640B400LTAIL><r 640RTAIL>"+o}, preserving it.The test copies that exact minifier input and checks the missing boundary directly.
Validation
The focused Jest run passed all 4 tests (including the new minifier case), with 2 snapshots.
Base snapshot
The fork base contains the source tree from upstream
canaryat89c94877667f1692ae979cc553bf86c763b0a6b0; only the fork's existing.github/workflows/build_reusable.ymlis retained because the publishing token cannot update workflow files.