MobX 7.0.3

7.0.3
Changed 2
  • Add a node export condition that routes Node and Bun to the existing dist/index.js entry, which picks the prebaked development or production CJS build once at require time, eliminating per-call NODE_ENV checks and ensuring a single mobx instance when mixing import and require in one Node app
  • Improve performance by avoiding env-agnostic dist/mobx.mjs execution in Node environments

From MobX

Patch Changes
  • 6f002b8e543ca39d3ee23681e28848d7f1724fae #4696 Thanks @gesposito! - perf: add a node export condition that routes Node and Bun to the existing dist/index.js entry, which picks the prebaked development or production CJS build once at require time. importing mobx in Node no longer executes the env-agnostic dist/mobx.mjs with per-call NODE_ENV checks, and mixing import and require in one Node app now yields a single mobx instance.
View original

Upgraded? How did it go?

Discussion