Documentation
    Preparing search index...

    Variable DEVConst

    DEV: boolean = ...

    true in a development build (the default), false when a bundler has defined __FOUR_DEV__ as false.

    Use it as a plain if condition around author-facing work:

    import { DEV, devWarn } from "@fourjs/core";

    if (DEV && !Number.isFinite(mass)) {
    devWarn(`mass must be finite; got ${String(mass)} (§85).`);
    }

    Read the module header before gating anything: the flag must never change a number the simulation computes (§33).