expose hasDash for the intellisense plugin (#9594)

This commit is contained in:
Robin Malfait 2022-10-17 17:13:33 +02:00 • committed by GitHub
parent 4041c863b8
commit 59395097ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 47 additions and 0 deletions

View file

@ -969,6 +969,7 @@ function registerPlugins(plugins, context) {
name,
isArbitrary: options.type === Symbol.for('MATCH_VARIANT'),
values: Object.keys(options.values ?? {}),
hasDash: name !== '@',
selectors({ modifier, value } = {}) {
let candidate = '__TAILWIND_PLACEHOLDER__'