-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
[docs-infra] StackBlitz WebContainer demos #45924
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
base: master
Are you sure you want to change the base?
Conversation
Netlify deploy previewhttps://deploy-preview-45924--material-ui.netlify.app/ Bundle size report |
@@ -1,99 +1,202 @@ | |||
import addHiddenInput from 'docs/src/modules/utils/addHiddenInput'; | |||
import { CODE_VARIANTS } from 'docs/src/modules/constants'; | |||
import sdk from '@stackblitz/sdk'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this worth 3KB gzipped? https://bundlephobia.com/package/@stackblitz/[email protected] What complexity does it solve that we really need this for? I mean what's wrong with making a call to the HTTP API ourselves directly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So the source looks simple https://github.com/stackblitz/sdk/blob/614e61fe8f50c419ed8414024899e37e69b1f999/src/generate.ts#L89. Maybe it does tree-shake correctly? But it doesn't seem to https://bundlejs.com/?q=%40stackblitz%2Fsdk%401.11.0&treeshake=%5B*%5D&text=%22export+default+sdk.openProject%3B%22
</IconButton> | ||
</DemoTooltip> | ||
<DemoTooltip title={t('codesandbox')} placement="bottom"> | ||
<IconButton |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why remove codesandbox?
- https://pro.similarweb.com/#/digitalsuite/websiteanalysis/overview/website-performance/*/999/1m?webSource=Total&key=codesandbox.io,stackblitz.com
- https://analytics.google.com/analytics/web/?authuser=1#/analysis/p353089763/edit/KctZ977QSou7VoMyBQMaqw
It looks like the majority of our users go with codesandbox.
Introduce demo/template sandboxes based on StackBlitz WebContainers so that they run real vite applications. I'm removing the old stackblitz links and codesandbox links as they are obsolete now and too unstable.
Advantages:
Disadvatages:
Try it out on https://deploy-preview-45924--material-ui.netlify.app/material-ui/react-button/
verified: