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'
[ ] fs.writeSync -> correct console.* methods so devtools formats it.
[ ] LogWidget needs a reimplementation (lol imagine we give DOM support)
[ ] Spinner, Progress will probably get their own browser implementation
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'
fs.writeSync
-> correctconsole.*
methods so devtools formats it.LogWidget
needs a reimplementation (lol imagine we give DOM support)Spinner
,Progress
will probably get their own browser implementation