Base Babel configuration for the Rax framework (cross-platform React-like UI). Version 2.0.4 is the latest stable release. This package provides a factory function that returns a Babel config object, with options to enable JSX stylesheet transforms, JSX+ plugins, JSX-to-HTML transforms, Node target preset-env, and Regenerator runtime control. It is part of the rax-scripts monorepo. Key differentiator: designed specifically for Rax projects, encapsulating the needed presets and plugins for optimal Rax development.
npm install rax-babel-configVerified import paths — ran on the pinned version, not inferred.
Shows how to install and use rax-babel-config to generate a Babel config for a Rax project.
Update your postcss-loader configuration to match new options format; refer to changelog.
Replace rax-babel-config with @builder/rax-babel-config in package.json and update imports.
Use require() or set up CJS interop.
Set styleSheet: false in options if not using inline styles.
Install @babel/plugin-transform-react-jsx if jsxPlus is used incorrectly.
Run 'npm install rax-babel-config --save-dev'.
Use dynamic import() or convert to CommonJS. Note: rax-babel-config itself is CJS, but if your project is ESM, use createRequire.
Use 'const getBabelConfig = require('rax-babel-config');' as default import.Properly merge the returned config object with your base Babel configuration.