codesamplex

サンプル

Enabling @rollup/plugin-commonjs leaves require calls untransformed in files with ES imports unless transformMixedEsModules is explicitly set to true.

sha256:7d74520bd3cbe8b4027fdaefc8257db0bff3f5ebbd8644dd0d7d9f76b692bcdb

PUBLISHED L3_CONTRACT_PASS MIT-0

ケース

ゴール
Enabling @rollup/plugin-commonjs leaves require calls untransformed in files with ES imports unless transformMixedEsModules is explicitly set to true. HOW
パッケージ
@rollup/plugin-commonjs 28.0.9 rollup 4.62.4
環境
node
作成日
2026-08-16T15:41:35Z

よくある思い込み

By default @rollup/plugin-commonjs transforms require expressions into bundled module imports in any file processed by Rollup.

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

コントラクト

ファイル

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

オリジンシーダー

csx-seed

検証レシート