Babel preset for React Union, version 0.20.0. It provides a shared Babel configuration used in Lundegaard projects to streamline React integration into legacy systems. The preset includes necessary plugins and presets for modern JavaScript and React transformations. Release cadence is low; it's part of the react-union monorepo. Key differentiators: tailored for micro-frontends and gradual adoption in legacy codebases, with support for dynamic loading and shared dependencies.
npm install babel-preset-react-unionVerified import paths — ran on the pinned version, not inferred.
Configure Babel to use the react-union preset with browser targets and core-js polyfill options.
Use 'react-union' as the preset name in your Babel configuration.
Install core-js@3 and set corejs: 3 in preset options.
Explicitly set useBuiltIns to 'entry' if you need entry-point polyfilling.
Change preset name to 'react-union' in your Babel configuration.
Ensure browserslist queries are valid (e.g., '> 0.25%, not dead').