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

Квитанции проверки