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

Enter the version directly in index.js #116

Open
mrennie opened this issue Nov 28, 2016 · 0 comments
Open

Enter the version directly in index.js #116

mrennie opened this issue Nov 28, 2016 · 0 comments

Comments

@mrennie
Copy link

mrennie commented Nov 28, 2016

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

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

1 participant