tobogganSe connecter

library

Prebuilt pebble components: drop-in custom elements, no compiler needed

Clone avec HTTPS, un jeton personnel en mot de passe, ou avec SSH, une clé ajoutée dans vos paramètres.

Dernier runAucun
0Étoiles
0Forks
2Issues
19 lignes · 795 octetsBrut · Historique
1/**
2 * Development flag.
3 *
4 * Unreplaced (dev server, `bun test`, `bun run x.ts`) `__DEV__` is undefined,
5 * so `DEV` is true and every message is intact with no configuration. A release
6 * build passes `define: { __DEV__: "false" }` (see scripts/release.ts); Bun
7 * folds the constant and the Terser pass collapses the dead branches, deleting
8 * the diagnostics while leaving the behaviour in place.
9 *
10 * So dev-only assertions are free in release: prefer adding one over leaving a
11 * misuse undiagnosed.
12 *
13 * This file is a copy of pebble's packages/invokers/dev.ts — a component
14 * package is dependency-free beyond pebble itself, so the pattern is
15 * duplicated, not shared.
16 */
17declare const __DEV__: boolean | undefined;
18
19export const DEV = typeof __DEV__ === "undefined" || __DEV__;