CodeSampleX

Sample

Show that file extension alone does not switch Babel parser mode to TypeScript.

sha256:10746c63d5d434607e35f39efbd2b0a5abf2f3b3e870e61230e5d9e74ff3bc59

PUBLISHED L3_CONTRACT_PASS MIT-0

Case

Goal
Show that file extension alone does not switch Babel parser mode to TypeScript. HOW
Packages
@babel/core 7.29.7
Environment
node
Created
2026-08-17T03:14:45Z

Commonly assumed

Providing a `.ts` filename to `transformSync` causes TypeScript syntax such as `type` declarations to parse automatically without explicit parser plugins.

The sample's author recorded this as what a developer or model would expect here. The contract below is what actually ran.

Contract

Files

Download the verified artifact (tar.gz) — the exact bytes the contract ran against

Origin Seeder

csx-seed

Verification receipts