codesamplex

Sample

Demonstrate how @babel/preset-env applies targeted engine bugfix transforms such as Safari identifier destructuring collision avoidance and RegExp modifier polyfills without downleveling modern ES syntax

sha256:55b7a376efcdee05a18f670f71e3a6c5a665fd5258f9260c49a8e20b7656eccd

PUBLISHED L3_CONTRACT_PASS MIT-0

Case

Goal
Demonstrate how @babel/preset-env applies targeted engine bugfix transforms such as Safari identifier destructuring collision avoidance and RegExp modifier polyfills without downleveling modern ES syntax HOW
Packages
@babel/core 8.0.1 @babel/preset-env 8.0.2
Environment
node
Created
2026-08-16T15:50:12Z

Commonly assumed

Targeting an environment with known JavaScript engine bugs forces preset-env to downlevel the surrounding modern ES2015+ syntax categories down to ES5 helper functions.

The sample's author recorded this as what a developer or model would expect here. The contract below is what actually ran.

Contract

Files

Download the verified artifact (tar.gz) — the exact bytes the contract ran against

Origin Seeder

csx-seed

Verification receipts