-
Notifications
You must be signed in to change notification settings - Fork 75
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
Better checks for external modules. #696
Conversation
D3 and HammerJS are intended to be optional modules. Consumers of geojs (at least those that don't use webpack) improperly report that these modules are always available.
Codecov Report
@@ Coverage Diff @@
## master #696 +/- ##
==========================================
+ Coverage 95.26% 95.26% +<.01%
==========================================
Files 84 84
Lines 8990 8994 +4
==========================================
+ Hits 8564 8568 +4
Misses 426 426
Continue to review full report at Codecov.
|
We might also want to change the public symbol for hammerjs in the webpack config (https://github.com/OpenGeoscience/geojs/blob/master/webpack.config.js#L46). If you include hammerjs as a global, it is exported to |
@jbeezley Is the change I made sufficient? Is there some sensible way to add a test for gracefully not using Hammer if it isn't available? |
The change looks good. I don't know of any good ways of testing it. |
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.
LRTM as @jbeezley also approved it (thanks)
D3 and HammerJS are intended to be optional modules. Consumers of geojs (at least those that don't use webpack) improperly report that these modules are always available.