codesamplex

Sample

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

Case

Goal
Enabling @rollup/plugin-commonjs leaves require calls untransformed in files with ES imports unless transformMixedEsModules is explicitly set to true. HOW
Packages
@rollup/plugin-commonjs 28.0.9 rollup 4.62.4
Environment
node
Created
2026-08-16T15:41:35Z

Commonly assumed

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

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