question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Reduce production bundle size

See original GitHub issue

First 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? bundle_map

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:9
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

10reactions
Dipen-Dedaniacommented, Feb 1, 2018

@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

1reaction
nolanlawsoncommented, Mar 16, 2019

I consider this largely fixed, especially given the separate nimble-picker file and the work in #258 and #260. In Pinafore using dist-modern and babel-plugin-transform-react-remove-prop-types, the nimble-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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found