Open djMax opened 1 year ago
Hey! Thank you for reaching out. We're aware the size of installed dependencies might indeed look a tad large, although in reality it's not that bad when the package gets bundled. Keep in mind that installed dependencies oftentimes contain irrelevant artifacts such as LICENSE, documentation or test fixtures, etc. - all of which wouldn't be loaded in the browser. You can preview the approximate size using bundlephobia in case you're curious.
That being said, there's certainly a place for some improvements on our side.
Libraries such as fnv-plus
or @sentry/browser
are redundant in the context of elements, so these could be indeed wiped.
Some others, however, are quite vital to elements.
To list a few:
Do feel free to reach out if you have any other concerns or questions. I'll keep the issue open so that we can stay in touch and make sure the issue in our radar.
We are deploying stoplight elements via docker containers.
Sorry to derail this thread, but: Is the Docker image public? I would like to use it too!
We are deploying stoplight elements via docker containers. I notice that a number of big-footprint modules - sentry and faker-js mainly are pulled in with stoplight. Why, and can we do something about it?
Context
Reasonably sized docker images.
Current Behavior
That's 51MB just for stoplight.
Possible Solution(s)
Perhaps some of these things are real dev dependencies? Or should be peers for optional features?