/**
 * Reads the compile-time `__EDITOR_BUILD__` define.
 *
 * vitest does not apply Vite's `define`, and `npm run dev` in a non-git
 * checkout may not either, so every read goes through here. `typeof` on an
 * undeclared identifier is safe in JS -- it does not throw.
 */
export function editorBuild(): string {
  return typeof __EDITOR_BUILD__ !== 'undefined' ? __EDITOR_BUILD__ : 'dev';
}
