paperdave / various

Various libraries and applications related to TypeScript. Everything is contained in a monorepo to improve productivity and reduce boilerplate.
MIT License
31 stars 3 forks source link

logger: support browser environment #46

Closed paperdave closed 1 year ago

paperdave commented 1 year ago

i'm looking into embedding logger in more places for debug purposes, such as within @purplet/rest, and maybe some other places. this package needs to be as stable as possible and run in every environment, right out of the box with any module bundler, node and bun, import and require.

for browser build, we have to -[ ] detect environment somehow. maybe we can fallback to a global window.DEBUG = 'filters'