data-explorer icon indicating copy to clipboard operation
data-explorer copied to clipboard

Data Explorer: Reduce package size

Open stormpython opened this issue 6 years ago • 6 comments

Is your feature request related to a problem? Please describe. The bundled size of Data Explorer is currently 1.5MB, which is too large to be a reasonable component pulled in by other libraries.

Describe the solution you'd like Need to reduce the size of the package. Open to any suggestions for scoping the requirements down.

Describe alternatives you've considered

stormpython avatar Feb 11 '19 21:02 stormpython

@emeeks I opened this issue for reducing the package size. Feel free to add your comments or possible solutions.

stormpython avatar Feb 11 '19 21:02 stormpython

Looks like there are some unused deps like lodash in the package.json if that helps.

https://github.com/nteract/nteract/blob/master/packages/data-explorer/package.json#L30

BenRussert avatar Feb 12 '19 00:02 BenRussert

Probably won't affect the webpack bundle, but styled-jsx can be deleted too. Those should be taken out anyways.

rgbkrk avatar Feb 12 '19 00:02 rgbkrk

Similarly, react-hot-loader also appears to be unused, although its less than a 1 KB so it won't help much.

Semiotic itself takes the majority of the weight, as seen here - it suggests the bundle is currently 1.1 MB if minified.

This treemap could probably help with determining a bundle optimization strategy.

(interactive source: https://bundlephobia.com/result?p=@nteract/[email protected] )

hydrosquall avatar Apr 26 '19 04:04 hydrosquall

This issue hasn't had any activity on it in the last 90 days. Unfortunately we don't get around to dealing with every issue that is opened. Instead of leaving issues open we're seeking to be transparent by closing issues that aren't being prioritized. If no other activity happens on this issue in one week, it will be closed. It's more than likely that just by me posting about this, the maintainers will take a closer look at these long forgotten issues to help evaluate what to do next. If you would like to see this issue get prioritized over others, there are multiple avenues 🗓:

  • Ask how you can help with this issue 👩🏿‍💻👨🏻‍💻
  • Help solve other issues the team is currently working on 👨🏾‍💻👩🏼‍💻
  • Donate to nteract so we can support developers to work on these features and bugs more regularly 💰🕐

Thank you!

stale[bot] avatar Feb 20 '20 05:02 stale[bot]

@emeeks Reopening and transferring this to the data explorer repo.

captainsafia avatar Mar 22 '20 18:03 captainsafia