a post-component library for building user-interfaces on the web.

tidy handling of PROD define

tombl.dev e3c5ae97 370c2e93

verified
+4 -1
-1
src/html.js
··· 9 9 Span as SpanInstance 10 10 } from './types' */ 11 11 12 - // @ts-expect-error -- undefined global 13 12 const DEV = typeof DHTML_PROD === 'undefined' || !DHTML_PROD 14 13 15 14 /** @type {typeof NodeFilter.SHOW_ELEMENT} */ const NODE_FILTER_ELEMENT = 1
+4
src/types.ts
··· 1 + declare global { 2 + const DHTML_PROD: unknown 3 + } 4 + 1 5 interface ToString { 2 6 toString(): string 3 7 }