moderator-toolbox-nxg-for-reddit / util/infra/buildenv

util/infra/buildenv

Variables

buildCount

const buildCount: number

Defined in: extension/data/util/infra/buildenv.ts:19

Git commit count at build time; used as the build number for dev builds since the manifest version’s 4th component is always 0 in dev.


buildSha

const buildSha: string | null

Defined in: extension/data/util/infra/buildenv.ts:12

The commit hash this release was built from, if this is a stable or prerelease build; typically null in dev builds.


buildType

const buildType: "stable" | "beta" | "dev"

Defined in: extension/data/util/infra/buildenv.ts:5

Indicates whether this is a stable, beta prerelease, or dev build.


isFirefoxBuild

const isFirefoxBuild: boolean

Defined in: extension/data/util/infra/buildenv.ts:28

true in the Firefox bundle. Guard Firefox-exclusive code (containers, content.fetch) on this so Rollup drops it from the Chrome bundle entirely instead of shipping it dormant. For that to work the guard must be an if outside any try block: Rollup keeps everything referenced inside a try.