-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
import via standard es6 #23
Comments
You can use es6 import as usual:
Am I missing something? |
@slavarazum Sorry, yeah I wasn't very clear that what I meant was when no build step is used. What file/url would I import in my javascript (I.E. no Node, no build step at all - just a js file in the public folder.) import { WaveConnector } from "https://jsdelivr.com/..../laravel-wave/....js" |
Looks like I need to dig deeper into this topic. You can import Wave from jsdelivr with the following instruction for now: Do you have any clear examples of libraries which satisfy your needs? |
@slavarazum Ah yes I forgot jsdeliver does that automatic conversion thing. That should do, for now at least. I've not used Wave yet, but planning on using it in a new project (and maybe replacing pusher & ably in a couple of other projects too) I think Alpine is good example - though I now notice they are just using jsdeliver as well.. |
@tobz-nz Got you! Let me know when you have your first experience. |
As more people start ditching js build pipelines it would be great to support importing via standard ES6 modules.
Any chance of getting some pre-compiled dist assets that can be imported directly in client-side js?
The text was updated successfully, but these errors were encountered: