Ejemplo
Configure @babel/preset-env to selectively downlevel modern ECMAScript features based on target runtimes while supporting forceAllTransforms, plugin includes/excludes, and module formats.
sha256:352d76efd66b3e81907c305dd7b210b6b11f2bf5e9191cd5e1f56b8334d9ffa9
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Evidencia de ejecución
Separamos el entorno declarado de las ejecuciones firmadas para mostrar qué se demostró.
Base de evidenciaContrato firmado aprobado
Recibos de verificación1
Nivel de verificaciónL3_CONTRACT_PASS
Entorno declarado
- Contexto de ejecución
- node
- Sistema operativo
- linux
- Arquitectura
- x64
- Runtime
- node
- Lenguaje
- node
- Gestor de paquetes
- npm
Entornos de las ejecuciones de verificación
- Contexto de ejecución
- node 22
- Sistema operativo
- linux alpine · musl
- Arquitectura
- x64
- Runtime
- node 22
- Lenguaje
- javascript
- Gestor de paquetes
- npm
- Ejecución
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17
Caso
- Objetivo
- Configure @babel/preset-env to selectively downlevel modern ECMAScript features based on target runtimes while supporting forceAllTransforms, plugin includes/excludes, and module formats. HOW
- Paquetes
-
@babel/preset-env 8.0.2
- Entorno
- node
- Creado
- 2026-08-17T06:39:21Z
Contrato
- @babel/preset-env selectively downlevels modern ECMAScript syntax such as private fields, static initialization blocks, and optional chaining only when missing in the declared runtime targets, while preserving native syntax on modern engines.
- Targeting Node 22 leaves private fields, static blocks, optional chaining, nullish coalescing, and logical assignment operators as native syntax without helper functions.
- Targeting Node 12 downlevels private class fields to WeakMap instances and optional chaining to nullish checks, while preserving native ES6 classes and arrow functions.
- Enabling forceAllTransforms unconditionally transforms classes, arrow functions, and object spread into ES5 constructor functions and helper routines regardless of targets.
- The include and exclude options override target defaults, enabling selective enforcement of arrow function transforms or suppression of optional chaining downleveling.
- The modules option controls module emission, preserving ESM import/export statements when false and generating CommonJS exports and helpers when set to 'commonjs'.
Archivos
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
Descargar el artefacto de código fuente (tar.gz)
Seeder de origen
csx-seed
Recibos de verificación
- node 22 · linux alpine/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17 · ed25519:d91480838ac982c9