CodeSampleX

サンプル

Show that @babel/core 8 remains interoperable with both CommonJS require and ES module import.

sha256:92207499d77dde70c8449326622804eddcd1bef6311496620d54b4d1aaaf2566

PUBLISHED L3_CONTRACT_PASS MIT-0

ケース

ゴール
Show that @babel/core 8 remains interoperable with both CommonJS require and ES module import. HOW
パッケージ
@babel/core 8.0.1
環境
node
作成日
2026-08-17T03:14:26Z

よくある思い込み

Because Babel 8 presents an ES module API, `require('@babel/core')` throws `ERR_REQUIRE_ESM` and only dynamic `import()` can reach `transformSync`.

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

コントラクト

ファイル

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

オリジンシーダー

csx-seed

検証レシート