-
-
Notifications
You must be signed in to change notification settings - Fork 646
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
Decouple Hammer.js from Muuri #204
Comments
Yep, hammer should probably be inside optionalDependencies instead of dependencies in package.json so you could skip installing it if need be. Will fix for 0.7.0. |
Wonderful. Thank you! |
v0.7.0 is now released and hammerjs set as a peerDependency: /~https://github.com/haltu/muuri/blob/master/package.json#L44 |
I'm still seeing this after updating and running npm install: and then this on build:
|
Hmmm, the |
The top part of
When it really should look like this:
The key there is the try catch around hammerjs to make sure it's optional. I have no idea if Rollup can be configured to output this stuff. Also the AMD definition part is not necessary. Before adopting Rollup Muuri had already dropped AMD definition support. If anyone has an idea that does not involve manually modifying the |
Looks like there are a few issues around that: |
@nathanchase v0.7.1 is now released and added the trycatch around hammer and it should again work as it used to ;) give it a go and let me know if that's not the case. |
@niklasramo Sorry to report that it still seems to be including hammer.js even in version 0.7.1: |
It does that with just Although, there's not gonna be hammer anymore in the next version of muuri... custom implementation 95% done. |
Hammer is removed fully from the upcoming version so closing this. |
I'm using (and enjoying!) Muuri, but I'm not dragging anything around in my implementation.
When I install via npm (
npm install muuri
), I'm still seeing Hammer as a dependency when my project builds.Is there any way to remove the
require
of Hammer.js so that it's not imported if I have no use for that functionality?The only settings I require are:
Just trying to remove any unnecessary code from my project. Thank you!
The text was updated successfully, but these errors were encountered: