Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any way to reduce the size of __webpack_require__() in the bundle? #4625

Closed
chmac opened this issue Mar 20, 2018 · 1 comment
Closed

Any way to reduce the size of __webpack_require__() in the bundle? #4625

chmac opened this issue Mar 20, 2018 · 1 comment

Comments

@chmac
Copy link
Contributor

chmac commented Mar 20, 2018

Description

I have a site with ~3.5k, pages loaded from markdown. My app-*,js bundle file is ~2.7M. It is not minified because it's >500KB.

I've broken it into chunks, and about 1.5M of the file is repeating sections like this:

/* 396 */
/***/ (function(module, exports, __webpack_require__) {

        __webpack_require__(
              1
            );
            module.exports = function(cb) { return __webpack_require__.e/* nsure */(137361941401043, function(_, error) {
                if (error) {
                  console.log('bundle loading error', error)
                  cb(true)
                } else {
                  cb(null, function() { return __webpack_require__(3893) })
                }
              });
             }


/***/ }),

Is there any way to reduce the size of these repeated sections? There are 62k lines in the file like this, and they're almost all identical. I guess uglify will not actually compress these parts that much.

@pieh
Copy link
Contributor

pieh commented Mar 20, 2018

I'll close this in favour of more detailed #4626 . Problem described there is most of what cause app bundle size scaling problems

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants