A Babel preset for Cloudflare Workers and Pages projects. Current stable version is 2.0.0. This preset configures Babel transforms optimized for the Cloudflare runtime environment, including compatibility with Cloudflare's specific JavaScript engine features and limitations. It simplifies setup by bundling necessary plugins and presets, reducing configuration overhead for Cloudflare-targeted JavaScript code. Released infrequently; relies on underlying Babel ecosystem.
npm install babel-preset-cfVerified import paths — ran on the pinned version, not inferred.
Install the preset and add it to your .babelrc file to enable Cloudflare-targeted Babel transforms.
Install and configure @babel/preset-env or add polyfills manually.
Use '@babel/preset-env' with target 'cloudflare' or check for updated compatibility.
Upgrade Node.js to version 10 or later.
Run 'npm install --save-dev babel-preset-cf' or ensure it's in dependencies.
Use fully qualified name: 'babel-preset-cf' or ensure module is installed and Babel version is compatible.
No dependency data recorded yet.