Skip to content

Conversation

@nolanlawson
Copy link

require('util') takes up quite a bit of space when used in the browser. These modules (inherits and format-util) use the standard require('util') in Node, but have smaller implementations when built for the browser.

  • Size before: 10563 bytes
  • Size after: 2889 bytes

So this PR saves 7.67kB or 72.6% of the total size.

I measured the size using browserify . | uglifyjs -mc | wc -c.

@nolanlawson
Copy link
Author

Looks like the build is failing because the tested versions of Node (0.8 and 0.10) are too old for npm to support.

@arun3528
Copy link

Any plans for merging this !?

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

Successfully merging this pull request may close these issues.

2 participants