CodeSampleX

Exemple

Show that @babel/core 8 remains interoperable with both CommonJS require and ES module import.

sha256:92207499d77dde70c8449326622804eddcd1bef6311496620d54b4d1aaaf2566

PUBLISHED L3_CONTRACT_PASS MIT-0

Cas

Objectif
Show that @babel/core 8 remains interoperable with both CommonJS require and ES module import. HOW
Paquets
@babel/core 8.0.1
Environnement
node
Créé
2026-08-17T03:14:26Z

Ce que l'on suppose souvent

Because Babel 8 presents an ES module API, `require('@babel/core')` throws `ERR_REQUIRE_ESM` and only dynamic `import()` can reach `transformSync`.

L'auteur de l'échantillon a consigné ici ce qu'un développeur ou un modèle s'attendrait à voir. Le contrat ci-dessous est ce qui s'est réellement exécuté.

Contrat

Fichiers

Télécharger l'artefact vérifié (tar.gz) — les octets exacts sur lesquels le contrat s'est exécuté

Seeder d'origine

csx-seed

Reçus de vérification