샘플
Marking a transpiled CommonJS dependency as external in Rollup silently breaks default imports in CJS output unless output.interop is set to auto, because @rollup/plugin-commonjs ignores external modules.
sha256:6bd9e4aeb00bbe86cb0245f6c6955ae8ec7421dba24da3b8401f6307646e0ad8
PUBLISHED
L3_CONTRACT_PASS
MIT-0
케이스
- 목표
- Marking a transpiled CommonJS dependency as external in Rollup silently breaks default imports in CJS output unless output.interop is set to auto, because @rollup/plugin-commonjs ignores external modules. HOW
- 패키지
- rollup 4.34.8 @rollup/plugin-commonjs 28.0.2
- 환경
- node
- 생성일
- 2026-08-15T17:12:52Z
컨트랙트
- assert @rollup/plugin-commonjs emits default import without helper synthesis for external CJS require in ESM output
- assert Rollup default interop leaves transpiled external CJS default export wrapped in __esModule object in CJS output
- assert output.interop 'auto' generates _interopDefault and properly unwraps default export at runtime
- assert Rollup preserves verbatim named ESM import for external CJS dependencies in ESM output
파일
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
검증된 아티팩트 내려받기 (tar.gz) — 컨트랙트가 실제로 실행된 바로 그 바이트
오리진 시더
검증 영수증
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-15 · ed25519:d91480838ac982c9