Babel preset for Divi Extension projects, used by Create Divi Extension. Version 1.0.0 is the current stable release. This preset configures Babel transforms including object-rest-spread and React JSX, with a focus on WordPress/Divi plugin development. It assumes Object.assign is available or polyfilled. Not recommended for standalone use; prefer using it via Create Divi Extension which includes it by default. No active development since 2021.
npm install babel-preset-divi-extensionVerified import paths — ran on the pinned version, not inferred.
Minimal .babelrc configuration to enable the preset for object rest/spread and React JSX transforms.
Replace with @babel/preset-env and @babel/preset-react in your Babel configuration.
Downgrade to Babel 7 or replace the preset.