CodeSampleX

Exemple

Demonstrate that Babel throws a generic Error when an unknown plugin name is used, contrary to the expected PluginError

sha256:46868fdc59f3c16f9dbd8dd754526c9fe4c8b9a188fc09a984a2de528082f8cd

PUBLISHED L3_CONTRACT_PASS MIT-0

Cas

Objectif
Demonstrate that Babel throws a generic Error when an unknown plugin name is used, contrary to the expected PluginError HOW
Paquets
@babel/core 7.24.0
Environnement
node
Créé
2026-08-17T03:14:14Z

Ce que l'on suppose souvent

Providing an unknown plugin name to Babel’s transformSync throws a PluginError named 'PluginError'

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