You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
652 B
20 lines
652 B
import { warn } from '../utils/warn'
|
|
import { magic } from '../magics'
|
|
|
|
import './$nextTick'
|
|
import './$dispatch'
|
|
import './$watch'
|
|
import './$store'
|
|
import './$data'
|
|
import './$root'
|
|
import './$refs'
|
|
import './$id'
|
|
import './$el'
|
|
|
|
// Register warnings for people using plugin syntaxes and not loading the plugin itself:
|
|
warnMissingPluginMagic('Focus', 'focus', 'focus')
|
|
warnMissingPluginMagic('Persist', 'persist', 'persist')
|
|
|
|
function warnMissingPluginMagic(name, magicName, slug) {
|
|
magic(magicName, (el) => warn(`You can't use [$${directiveName}] without first installing the "${name}" plugin here: https://alpinejs.dev/plugins/${slug}`, el))
|
|
}
|
|
|