샘플
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
실행 증거
선언된 환경과 서명된 검증 실행을 분리해 이 샘플이 실제로 증명하는 범위를 보여줍니다.
증거 기준서명된 컨트랙트 통과
검증 영수증1
검증 수준L3_CONTRACT_PASS
선언된 환경
- 실행 컨텍스트
- node
- 운영체제
- linux
- 아키텍처
- x64
- 런타임
- node
- 언어
- node
- 패키지 매니저
- npm
검증 실행 환경
- 실행 컨텍스트
- node 22
- 운영체제
- linux alpine · musl
- 아키텍처
- x64
- 런타임
- node 22
- 언어
- javascript
- 패키지 매니저
- npm
- 실행 방식
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17
케이스
- 목표
- Configure @babel/preset-env to selectively downlevel modern ECMAScript features based on target runtimes while supporting forceAllTransforms, plugin includes/excludes, and module formats. HOW
- 패키지
-
@babel/preset-env 8.0.2
- 환경
- node
- 생성일
- 2026-08-17T06:39:21Z
컨트랙트
- @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'.
파일
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
소스 아티팩트 내려받기 (tar.gz)
오리진 시더
csx-seed
검증 영수증
- node 22 · linux alpine/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17 · ed25519:d91480838ac982c9