Reduce production bundle size
See original GitHub issueFirst of all, great work with the plugin. It’s working perfectly fine. The issue I’m facing right now is, my bundle.js is got so big (2.5MB). I have created my ReactJS application with create-react-app and I’m creating my production build with
npm run build
So I was trying to figure out the issue behind the size issue. And I came across with one Medium article and I tried source-map-explorer plugin. And I was completely shocked by seeing a result that emoji-mart is taking ~600kb.
Any suggestion on how to improve this?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:9
- Comments:11 (1 by maintainers)
Top Results From Across the Web
3 ways to reduce webpack bundle size - Jakob Lind
3 ways to reduce webpack bundle size · Easy: Run webpack in production mode · Medium: use an analyzer tool such as webpack-bundle-analyzer...
Read more >Possible ways to reduce your webpack bundle size - Medium
Here are some cool ways you can reduce your webpack bundle size: ... This is really important because using webpack 4 in production...
Read more >Reduce your React Applications Bundle Size by 75% with ...
One of the most impactful techniques to reduce the bundle size of a React application is compression. compression is a process in which...
Read more >Minimizing Webpack bundle size - Anvil
By minimizing the size of the bundle, we reduce the time it takes for browsers to download the JavaScript for our site, improving...
Read more >Reducing JavaScript Bundle Size. Part One
Code splitting is the ability to take a collection of modules, tied together in some pattern, and remove them from the main JavaScript...
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 Free
Top 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
@mattbucci I have customized emoji-mart plugin as per my requirement (Mr Emoji) and published on NPM, hoping that, this might be useful to someone. 😃 https://www.npmjs.com/package/mr-emoji
I consider this largely fixed, especially given the separate
nimble-picker
file and the work in #258 and #260. In Pinafore usingdist-modern
andbabel-plugin-transform-react-remove-prop-types
, thenimble-picker.js
is down to 36.25kB minified according to Webpack Bundle Analyzer (report).I also load
all.json
as a separate file to avoid it bloating the JavaScript and to control the caching and parsing of the JSON. (The JSON file is 560K and 67.5K Brotli-compressed.) For an end-to-end example of how to do this, see this code.