I’m trying to use
autocomplete.js in my site where assets are bundled with Rollup, but I face an issue I’ve not been able to fix.
I’ve put the code in a branch in my GitHub repo: https://github.com/nhoizey/nicolas-hoizey.com/tree/algolia
Rollup config is there (a bit complicated, I generate both IIFE and ES versions, for multiple JS files, and also Sass… ):
which is imported in
Rollup build runs perfectly.
But when I load a page in my site, I get this error in the console:
Uncaught TypeError: utils.mixin is not a function
It looks like
zepto.extend when used standalone:
But I don’t have Zepto. Should I add it to my project?