CodeSampleX

サンプル

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

sha256:10746c63d5d434607e35f39efbd2b0a5abf2f3b3e870e61230e5d9e74ff3bc59

PUBLISHED L3_CONTRACT_PASS MIT-0

ケース

ゴール
Show that file extension alone does not switch Babel parser mode to TypeScript. HOW
パッケージ
@babel/core 7.29.7
環境
node
作成日
2026-08-17T03:14:45Z

よくある思い込み

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

このサンプルの作者が、ここで開発者やモデルが期待するであろうこととして記録したもの。下の契約が実際に実行されたものだ。

コントラクト

ファイル

検証済みアーティファクトをダウンロード (tar.gz) — 契約が実行された正確なバイト列

オリジンシーダー

csx-seed

検証レシート