A Babel preset for compiling CxJS applications, version 26.1.0. Integrates @babel/proposal-class-properties, @babel/proposal-function-bind, @babel/transform-react-jsx, babel-plugin-transform-cx-jsx, and babel-plugin-transform-cx-imports. Released as part of CxJS tooling, updated alongside framework versions. Unlike generic React presets, it specifically transforms CxJS JSX and imports. Peer dependencies include @babel/core and @babel/preset-env.
npm install babel-preset-cx-envVerified import paths — ran on the pinned version, not inferred.
Shows configuration of babel-preset-cx-env with options for JSX whitespace and import source.
Use presets: [['babel-preset-cx-env', { cx: {...} }]]Monitor changelog, consider migration to babel-plugin-cx-imports if announced.
Use module.exports = { presets: [['babel-preset-cx-env', options]] }npm install @babel/core @babel/preset-env --save-dev