diff --git a/package.json b/package.json index dd5dd2fb6..7170a1a5f 100644 --- a/package.json +++ b/package.json @@ -62,7 +62,7 @@ "peerDependencies": {}, "dependencies": { "algoliasearch": "^3.18.0", - "autocomplete.js": "0.21.1", + "autocomplete.js": "^0.21.8", "hogan.js": "^3.0.2", "to-factory": "^1.0.0" } diff --git a/src/lib/zepto.js b/src/lib/zepto.js index 42c779d41..62f0c4725 100644 --- a/src/lib/zepto.js +++ b/src/lib/zepto.js @@ -1,10 +1,2 @@ -/* zepto work-around */ - -const current$ = window.$; -const currentZepto = window.Zepto; -require('autocomplete.js/zepto.js'); -const zepto = window.Zepto; -window.$ = current$; -window.Zepto = currentZepto; - +import zepto from 'autocomplete.js/zepto.js'; export default zepto;