You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@superset.apache.org by GitBox <gi...@apache.org> on 2018/03/29 03:42:18 UTC
[GitHub] mistercrunch opened a new issue #4705: Smaller JS package sizes!
mistercrunch opened a new issue #4705: Smaller JS package sizes!
URL: https://github.com/apache/incubator-superset/issues/4705
I think we've beaten the world record of biggest JS bundles. Let's contain this.
State of things:
```
$ du dist/*|sort -n -r | head
14640 dist/dashboard.13e463a9f8b8738180b3.entry.js
14032 dist/explore.248040abcbbaf60a59b9.entry.js
6072 dist/sqllab.ea495dee48ee855009f6.entry.js
2296 dist/addSlice.66d103d9c1275427d857.entry.js
2064 dist/profile.90e39d37579af32c6091.entry.js
2040 dist/welcome.41f4f4057ba02c52f350.entry.js
1072 dist/common.7ece420589d15408bce6.entry.js
520 dist/theme.ed0d61cb90e4574ee3da.css
216 dist/89889688147bd7575d6327160d64e760.svg
160 dist/dashboard.13e463a9f8b8738180b3.css
```
Ideas:
* break out a `superset-visualizations` npm package with sub packages for each visualizations sets, one for `deckGL`-related visualizations, one for nvd3-related, and any other big chunks separately. This will also pave the way towards a `superset-embedables` package
* the biggest win is to break out the deckgl related packages (luma.gl, mapbox.gl, deck.gl, ...)
* in the main app, visualizations bundles should be lazy loaded
* working viz out of `explore` and `dashboard`, should make those much leaner
* keep `theme.js` we still need that has standalone
* maybe add a `common.js` with things like `React` and commonly used utilities that we need across the board
* ...
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services