-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added code for sandpack console #4672
Conversation
Size Changes📦 Next.js Bundle AnalysisThis analysis was generated by the next.js bundle analysis action 🤖
|
Page | Size (compressed) |
---|---|
global |
84.68 KB (🟡 +86 B) |
Details
The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.
Any third party scripts you have added directly to your app using the <script>
tag are not accounted for in this analysis
If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!
@danilowoz Seems like the new bundler doesn't emit |
We need to keep the normal font for the "Console" header itself. Monospace is just for the content. |
And let's make the console hidden until the first |
Adds console to sandpack component
UI :
Behaviour:
console.log
only. No errors or warnings.Object.prototype.toString.call(value)
. If that throws too, just print"[" + typeof(value) + "]"
.console.log("hi", {}, {})
the vertical space between objects is too large. Put them closer. The excessive indentation is also strange, let's remove it.message.firstLoad
from sandpack)console.log
into component body and then edit it causes to console to always clear before next render. I don't know why. Seems like a bug.