A custom Babel preset for use with the Kaba build system, currently at v4.1.4. Provides legacy and modern environment configurations via `@babel/preset-env` and includes support for React, nullish coalescing, and numeric separators. Peer dependency on `core-js ^3.16.1`. Key differentiator: returns separate configs for legacy and modern browsers, allowing differential serving. Release cadence is irregular, with minor and patch updates as needed.
npm install kaba-babel-presetVerified import paths — ran on the pinned version, not inferred.
Shows how to use kaba-babel-preset in a Babel config, selecting legacy or modern preset based on an environment variable.
Update usage to destructure the exported object: `const { legacy, modern } = require('kaba-babel-preset');`Ensure `core-js` is installed as a peer dependency and configure `useBuiltIns` appropriately.
Upgrade to v4.1.3 or later to suppress the warning.
Run `npm install core-js@^3.16.1` or add it to your project's dependencies.
Install core-js: `npm install core-js@^3.16.1`
Use `const { legacy, modern } = require('kaba-babel-preset');`Ensure the preset is only listed once in your Babel config.