imacrayon / alpine-ajax

An Alpine.js plugin for building server-powered frontends.
https://alpine-ajax.js.org
MIT License
561 stars 12 forks source link

Decouple Alpine.morph from package #5

Closed imacrayon closed 1 year ago

imacrayon commented 1 year ago

The Alpine UI components required the Focus Plugin to be included separately. This project could follow the same pattern the Morph Plugin dependency:

<script defer src="https://unpkg.com/@imacrayon/alpine-ajax@x.x.20/dist/cdn.min.js"></script>
<script defer src="https://unpkg.com/@alpinejs/morph@3.x.x/dist/cdn.min.js"></script>
<script defer src="https://unpkg.com/alpinejs@3.x.x/dist/cdn.min.js"></script>

I feel like the Morph Plugin isn't as commonly used as the Focus Plugin and that was my initial reasoning for bundling it in Alpine AJAX, but I'm happy to decouple it if there's enough interest in that.