Is it possible to ensure Alpine components run properly when two versions of Alpine are loaded? #2065
-
AlpineJS is starting to grow in popularity, and I'm starting to notice that it's popping up in WordPress plugins and themes. I'm concerned that if multiple plugins are using AlpineJS that there may be a collision between the two plugins. If there isn't a way to-do this now, I'm wondering if it would make sense to make it possible to replace the I imagine this could be added as an argument to |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It's already possible in v3. Assuming you are bundling your plugin import Alpine from 'alpinejs'
...
Alpine.prefix('myplugin-x-')
Alpine.start() It will be down to whoever writes the plugin to use it. |
Beta Was this translation helpful? Give feedback.
It's already possible in v3. Assuming you are bundling your plugin
It will be down to whoever writes the plugin to use it.