Bundle size
See original GitHub issueHi @bvaughn ,
We are glad that this library is performing so well on mobile devices for us. One thing that we are concerned about is the bundle size. We are using webpack 2 for bundling with tree-shaking. Currently react-virtualized’s size in our bundle can be seen below.
This is when we are using InfiniteScroller
with List
. Even though I am fine with this, I would like to know whether this can be improved ? Because even slight reductions in file size can do wonders on mobile.
Issue Analytics
- State:
- Created 7 years ago
- Comments:37 (11 by maintainers)
Top Results From Across the Web
Bundlephobia | Size of npm dependencies
Bundlephobia helps you find the performance impact of npm packages. Find the size of any javascript package and its effect on your frontend...
Read more >Slimming down your bundle size - LogRocket Blog
A critical part for improving frontend performance is to reduce the JavaScript bundle size that should be downloaded via the network.
Read more >bundlejs - Online bundler + npm package bundle size checker
A quick and easy way to bundle, minify, and compress (gzip and brotli) your ts, js, jsx and npm projects all online, with...
Read more >5 Methods to Reduce JavaScript Bundle Size - Bits and Pieces
4. Compressing Bundles. If your application bundle size increases and affects performance, you can compress them to reduce the size. Gzip and ...
Read more >Analyze your React app's bundle size and reduce it using ...
As your React app gets larger, you may have to start worrying about its bundle size. An app's bundle size is the amount...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ran into the same exact issue. Webpack 2 and tree-shaking did not work until:
👍
Here are all the cases that I tried
Case I
Build: ✅ Loading form :
es
File size: increases Tree shaking: ❌Case II
Build: ❌ can’t resolve modules
Case III
Build: ✅ File size: decreases But when I make a request, it gives an error
"Unhandled Promise rejection: SyntaxError: Unexpected token import"
. This has nothing to do with react-virtualized. We even tried this with react-router and got the same error. So either webpack issue or our config. Its really tough with the lack of docs on webpack 2 currently.Case IV
Build: ✅ File size : decreases Everything works fine.
So currently we are using this. Hopefully we will be able to figure out the webpack issue soon.