Rather than require'ing the package.json simply to read the version number, you should just enter it in there each release. Remove the import statement and add a const (or something) by the export at the end. This simple change shrinks the browserified version of the lib from ~7140LOC to ~7060LOC