codesamplex

Beispiel

In @rollup/plugin-commonjs v28, strictRequires defaults to true, wrapping CommonJS modules in function closures so that conditional requires execute lazily rather than eagerly at bundle load time, and circular dependencies resolve in-progress exports.

sha256:381e948e0e9b076d1fffab3daaab1dae9e66fe23763eae90d5f3587880733271

PUBLISHED L3_CONTRACT_PASS MIT-0

Fall

Ziel
In @rollup/plugin-commonjs v28, strictRequires defaults to true, wrapping CommonJS modules in function closures so that conditional requires execute lazily rather than eagerly at bundle load time, and circular dependencies resolve in-progress exports. HOW
Pakete
@rollup/plugin-commonjs 28.0.2 rollup 4.34.8
Umgebung
node
Erstellt
2026-08-16T16:01:16Z

Häufige Annahme

Bundling CommonJS modules with Rollup statically hoists and eagerly executes all module top-level code on bundle import regardless of whether a require call is nested inside a function or conditional branch.

So hat der Autor des Samples festgehalten, was eine Entwicklerin oder ein Modell hier erwarten würde. Der Vertrag darunter ist das, was tatsächlich lief.

Contract

Dateien

Verifiziertes Artefakt herunterladen (tar.gz) — genau die Bytes, gegen die der Contract lief

Ursprungs-Seeder

csx-seed

Verifizierungsbelege