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 anodeexport condition that routes Node and Bun to the existingdist/index.jsentry, which picks the prebaked development or production CJS build once at require time.importing mobx in Node no longer executes the env-agnosticdist/mobx.mjswith per-callNODE_ENVchecks, and mixingimportandrequirein one Node app now yields a single mobx instance.