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

ref: Move utils from raven.js to utils.js file #1084

Merged
merged 1 commit into from
Oct 11, 2017
Merged

Conversation

kamilogorek
Copy link
Contributor

Closes #941


var isError = utils.isError,
isObject = utils.isObject;
var utils = require('./utils');
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't want to change all instances to utils.something in the codebase, but rather just pull them out like this to make this PR "easier" to digest.

Copy link
Contributor

@MaxBittker MaxBittker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice, good to see raven.js shrinking

@benvinegar
Copy link
Contributor

benvinegar commented Oct 10, 2017

FWIW, I explicitly inlined these to improve minified filesize (a few %, but every bit counts). You're welcome to change it, but know that it was done deliberately, and will have an impact.

Aside, we should verify minified filesize stays within a certain threshold as part of CI. That threshold can change, of course, but it will require you to manually bump it to "sign off" when increasing it. I basically want to make sure we don't forget about it.

@kamilogorek
Copy link
Contributor Author

I'm already on it here – #1089
Also verified and build with extracted utils is still <10kB.

If it'll ever become an issue, we can use rollup to bundle without browserify's overhead.

@kamilogorek kamilogorek merged commit 0b59724 into master Oct 11, 2017
@kamilogorek kamilogorek deleted the extract-utils branch October 11, 2017 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants