Is there a benefit to console.table(payload) in Bud Server?

I’m curious if there’s any added benefit for keeping console.table(payload); in @roots/bud-server/lib/cjs/client/index.js? It’s no biggie to remove it (though slightly cumbersome to do it after every upgrade), but I’m wondering why it’s there to begin with? The console gets pretty cluttered when it creates all those tables after every save.

of course there is a benefit – debugging. eventually it’ll be put behind a debug flag but for the time being it makes sense to keep it on.

you don’t need to manually edit node_modules, though. just filter your console. no bud code runs in app.js. all dev tooling is confined to the bud.app.editor chunk.

image

3 Likes