-
-
Notifications
You must be signed in to change notification settings - Fork 208
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
unpkg support #10
Comments
Hmm, seems to work just fine for me? https://codesandbox.io/s/priceless-thunder-m89xo6?file=/src/main.js Is there a specific build setup you are using? |
Hi @justin-schroeder – I'm not seeing use of
Code in an html page typically looks like:
It's just an extremely useful convenience for many situations. Supporting code-only imports sometimes requires a bit of structuring of the module such that functions work once they are imported this way. It's not vital to solve for right now, except that it may instruct how module(s) best be defined (saves later refactors). Thanks for considering 🍺 |
Sorry mate, I pasted the wrong url, wasn't even at code sandbox 😂 here's what I was trying to link to: https://stackblitz.com/edit/web-platform-edhnls?file=index.html |
@galtenberg perhaps you can provide a reproduction on stackblitz or other location where its not working and we can go from there. |
Confirmed the example works for me, might have a different issue to report if I can isolate. Thanks for the test! |
I've not yet been able to build an example by importing from
unpkg
– I've tried these:import autoAnimate from 'https://unpkg.com/@formkit/auto-animate'
import autoAnimate from 'https://unpkg.com/@formkit/auto-animate@1.0.0-beta.1/index.mjs'
Is there a proper form, or does support just require a bit more work?
The text was updated successfully, but these errors were encountered: