bsdfzzzy / vue2-hammer

Hammer.js wrapper for Vue 2.x to support some touching operation in the mobile.
MIT License
253 stars 48 forks source link

index.min.js depends on babel-runtime #18

Closed Findus23 closed 5 years ago

Findus23 commented 5 years ago

Hi,

After updating vue2-hammer to 2.0.0, my webpack build fails. This seems to be because the index.min.js includes the following part

var _keys=require("babel-runtime/core-js/object/keys");

But as the dependency is never mentioned in the package.json webpack fails with the following error:

This dependency was not found:

* babel-runtime/core-js/object/keys in ./node_modules/vue2-hammer/index.min.js
bsdfzzzy commented 5 years ago

Thanks, I fixed that at version 2.0.1.