-
Notifications
You must be signed in to change notification settings - Fork 13.8k
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
Refactor around how visualizations/*.js are required #913
Conversation
Coverage remained the same at 81.435% when pulling cf702472f67b2a0c2d9b0bfd564b2aeca41ec52c on mistercrunch:refactor into d6bb8c6 on airbnb:master. |
Coverage remained the same at 81.435% when pulling cf702472f67b2a0c2d9b0bfd564b2aeca41ec52c on mistercrunch:refactor into d6bb8c6 on airbnb:master. |
@mistercrunch this is going to clash with #888, the one that gets in later needs to be updated |
let slice; | ||
function getParam(name) { | ||
name = name.replace(/[\[]/, '\\[').replace(/[\]]/, '\\]'); | ||
const regex = new RegExp('[\\?&]' + name + '=([^&#]*)'); | ||
const newName = name.replace(/[\[]/, '\\[').replace(/[\]]/, '\\]'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could call this formattedName
to be more specific.
3ee8d7b
to
4d5579e
Compare
Coverage decreased (-0.2%) to 80.83% when pulling 4d5579ecd0be606f0bc5fd01bc57fceb894fe73b on mistercrunch:refactor into 9b3b1f6 on airbnb:master. |
Coverage increased (+0.2%) to 81.237% when pulling 4d5579ecd0be606f0bc5fd01bc57fceb894fe73b on mistercrunch:refactor into 9b3b1f6 on airbnb:master. |
Coverage increased (+0.2%) to 81.237% when pulling 321b263d018b11e1f3caa578ea0809654301f2b6 on mistercrunch:refactor into 9b3b1f6 on airbnb:master. |
Coverage remained the same at 81.237% when pulling a5bacb9342d652afd78e539f3d3936a8a339b7ef on mistercrunch:refactor into 198226a on airbnb:master. |
Coverage remained the same at 81.237% when pulling bf77895017d57132f14f61c8e9b1c51db2716067 on mistercrunch:refactor into 198226a on airbnb:master. |
require
calls of visualizations to not be done "on the fly", this allow for commenting out the ones you don't need while iterating on one, reducing webpack builds from ~12s to ~4s@georgeke @ascott @bkyryliuk