Babel preset for ES features commonly used with MobX. Current stable version 2.0.0, last updated 2017, no recent releases. Includes transform-decorators-legacy, transform-class-properties, transform-es2015-classes, transform-regenerator. Requires babel-polyfill or regenerator-runtime for async/generators. Outdated and unmaintained; users should migrate to modern Babel (v7+) with individual @babel/plugin proposals or a custom preset. Does not support current MobX 6+ decorator syntax.
npm install babel-preset-mobxVerified import paths — ran on the pinned version, not inferred.
Install and configure babel-preset-mobx with .babelrc for MobX projects.
Use @babel/preset-env and add required plugins manually for Babel 7+.
Install babel-polyfill or regenerator-runtime as a runtime dependency.
Use @babel/plugin-proposal-decorators and @babel/plugin-proposal-class-properties.
Upgrade to a Babel 7 compatible preset or use @babel/preset-env with manual plugins.
Install regenerator-runtime and import it at the entry point.
Add @babel/plugin-proposal-decorators with legacy: true to Babel config.