Bug: Bundling with webpack produces to big bundle
See original GitHub issueBundling the raven-js lib 3.22.3 using webpack and using it like this:
import { install } from "sentry"
install(...)
produces the following bundle:
Compared to the minimized file dist/raven.min.js
that is 28kib the size in my bundled version seems to be to big.
Also look at the treemap:
This seems to be a bug how the ES6 modules are bundled.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:15 (6 by maintainers)
Top Results From Across the Web
Code Splitting - webpack
This feature allows you to split your code into various bundles which can then be loaded on demand or in parallel. It can...
Read more >Webpack production build bundle is too huge - Stack Overflow
My project is very very huge. It consists of 10-12 modules and bundling of one module related JS files is taking 460KB file...
Read more >Setting performance budgets with webpack - web.dev
Bundling is neat, but as your app grows your bundles will grow too. You need to monitor bundle sizes to ensure that they...
Read more >Module Bundling with Webpack - LearnHowToProgram.com
A module bundler collects all project source code and concatenates it into a big central file. Using a module bundler has recently become...
Read more >Enforcing performance budgets with webpack - CSS-Tricks
webpack has a lot of features to help you achieve smaller bundles and control the loading priority of resources. The most compelling of...
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
Hi, this is causing us issues adopting sentry in new projects and prevents us from updating the SDK.
Excuse the large screenshots, but we’re seeing an increase of about 2.6 times in transmitted size and 3.6 times in parsed size which would seriously impact our javascript budgets.
I’d like to request that this is reopened and the Needs Reproduction label is dropped.
We’d also like to thank you for continuing to support
raven-js
as its’ smaller bundle size allows us to continue monitoring errors without impacting performance for users.23kB is an accurate measurement right now. We’ll start on working to reduce it once we iron out all the details of the 4.0.0