-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
What's the best way to use this library from ClojureScript in the browser? #176
Comments
Hello @harold. I haven't used Clojurescript since quite a long time now so I am not sure what I would advise to better load this JavaScript code into your own but I am sure this can be done. However, you will maybe require some glue code such as the one I had (for the reverse purpose) in |
Thanks for your reply. That glue code is interesting and helpful. I guess one question I have is about these
It looks like there is some browser support for this (https://caniuse.com/es6-module-dynamic-import), but maybe it's better to use something like webpack? That might allow me to pre-produce a small Seems like there are a few options. If we end up going this way I will report my findings. Regardless, thanks for all your work in this area, it's really very much appreciated. |
@harold the lib's code is indeed written using ES6 import syntax but the shipped code is transpiled. Check the actual code you get when installing the lib under |
Sorry I closed/reopen the issue by mistake. |
Oh, that's interesting! I will, thanks! |
Looked into this a bit more this afternoon. There are hints around about possible ways to do this:
I poked around a bit and it didn't immediately work for me (says more about me and my project than anything else, ha!) I'm sure it could be made to work with more effort, and if anyone does get it working I'd love to hear. For now, since we're really only trying to do jaro-winkler, I think we're going to start with this single-file implementation: Thanks again for all your great and inspiring work. 🙇♂️ |
Hi! Found this library from the docs of the excellent
clj-fuzzy
, which we have used to great success.This lib looks great.
Can you advise on the best way to use this from cljs on the front end?
In particular we'd like to user jaro-winkler to compare strings.
Thanks in advance for your time and consideration.
The text was updated successfully, but these errors were encountered: