alpinejs / alpine

A rugged, minimal framework for composing JavaScript behavior in your markup.
https://alpinejs.dev
MIT License
27.92k stars 1.22k forks source link

Add missing plugin warnings #4158

Closed calebporzio closed 4 months ago

calebporzio commented 4 months ago

A common issue is encountered where someone tries to use a plugin, receives a mysterious error, and fails to realize that the Plugin wasn't included on the page in the first place.

This happens most often with the headless UI plugin as well as the anchor plugin (because these plugins aren't bundled with Livewire).

For now, we're only warning about the ones not bundled with Livewire because this addition disproportionately increases the core bundle size because of the string literals.

We can add more as needed/requested.

CleanShot 2024-04-18 at 15 07 31@2x