Update to modern ESM
Author: rektideCreated Aug 18, 2026Updated Aug 18, 2026
We should adopt EcmaScript 2015's ESM for javascript modules, instead of using legacy CJS module system. This would keep us apace with modern tools, which are tending to prefer and in some cases require ESM.
Dual packages might be preferred, but in my humble opinion it brings little advantage & we should just do CJS.
Source: facebook/watchman