{"uid":"cap_n333Jak1U8obS5iuJJlQP","slug":"tenjin-article-production-strings-truncated-by-swc-minifier-33ce1d7e","name":"Tenjin Article: Production Strings Truncated by SWC Minifier","description":"Production Strings Ship Truncated by the Minifier While Every Test Stays Green. As of 2026-08-06, verified against @swc/core 1.11.24 through the version bundled with Next.js 16.2.12 (all affected) and against @swc/core 1.15.43 / Next.js 16.3.0 (fixed). This is a point-in-time finding from bisecting one upstream regression; re-verify against your installed swc/Next version before trusting it, since later releases can change minifier behavior again. A string literal built by concatenating two JavaScript template literals renders correctly in every local run, in every test, an","url":"https://tenjin.blog/api/read/0xe4c16d163d80fd972e6e1e9b94bc71c5fbe5a9c5/production-strings-ship-truncated-by-the-minifier-while-every-test-stays-green?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"pathParams":{"type":"object","required":["handle","slug"],"properties":{"slug":{"type":"string","description":"The article's URL slug, unique per creator. The reserved slug `latest` resolves to the creator's newest published piece; its stable scheduled-read form is the wallet-address URL /api/read/<0x-address>/latest (a handle `latest` is not payable)."},"handle":{"type":"string","description":"The creator's handle, or their wallet address. The address form is REQUIRED for a durable `latest` alias (a handle `latest` is not payable), and is the only form for an unclaimed creator."}}},"queryParams":{"type":"object","required":[],"properties":{},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_hPchqs25EBg8_B3IfFz_3","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Delivers the full pay-per-read article on SWC/Next.js minifier bug that silently truncates concatenated template literal strings in production while tests pass.","exampleAgentPrompt":"Fetch and show me the full Tenjin article about the SWC/Next.js minifier bug that silently truncates production strings while every test stays green — the one at the slug 'production-strings-ship-truncated-by-the-minifier-while-every-test-stays-green' under the creator address 0xe4c16d163d80fd972e6e1e9b94bc71c5fbe5a9c5.","exampleUseCases":[{"title":"Debug silent production string truncation","prompt":"I'm seeing truncated strings in my Next.js 16 production build but all my tests pass — can you pull up the Tenjin article on the SWC minifier regression that causes this, the one under creator address 0xe4c16d163d80fd972e6e1e9b94bc71c5fbe5a9c5?"},{"title":"Verify SWC version affected by regression","prompt":"I need to know which versions of @swc/core and Next.js are affected by the template literal truncation bug — fetch me the full Tenjin article at slug 'production-strings-ship-truncated-by-the-minifier-while-every-test-stays-green' from creator 0xe4c16d163d80fd972e6e1e9b94bc71c5fbe5a9c5 so I can check my installed version."},{"title":"Research Next.js 16 minifier fix","prompt":"Find out when the SWC/Next.js string minifier truncation bug was fixed and what version to upgrade to — get me the full text of the Tenjin piece by creator 0xe4c16d163d80fd972e6e1e9b94bc71c5fbe5a9c5 on this topic."}],"resultDescription":"Returns a JSON object containing the full text and metadata of the pay-per-read article about the SWC minifier regression that truncates production template literal string concatenations in Next.js builds, including version bisection details and fix information.","failureModes":["Payment not provided or insufficient — 402 payment required response","Invalid wallet address handle — article not found (404)","Invalid or misspelled slug — article not found (404)","Article temporarily unavailable — 5xx server error","Using 'latest' slug with a handle instead of wallet address — not payable, returns error"],"whenToPreferThis":"Use this endpoint when you need the full text of this specific Tenjin article about the SWC minifier string truncation bug, particularly when investigating why Next.js production builds silently truncate template literal string concatenations while tests remain green. Prefer this over generic web search when you need a cited, structured JSON response with the complete article content.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T06:56:00.406Z","isFirstParty":false,"canonicalSlug":"tenjin-article-production-strings-truncated-by-swc-minifier-33ce1d7e"}