Fix travis issue (missed an opening bracket)
This commit is contained in:
parent
f8dfd04600
commit
8042c268d4
1 changed files with 9 additions and 9 deletions
|
|
@ -33,25 +33,25 @@ function findClass(classToApply, classTable, shadowLookup, prefix, onError) {
|
|||
let matches = _.get(classTable, classToApply, [])
|
||||
|
||||
if (_.isEmpty(matches)) {
|
||||
if (_.isEmpty(shadowLookup))
|
||||
if (_.isEmpty(shadowLookup)) {
|
||||
if (prefix) {
|
||||
classToApply = '.' + prefix + classToApply.substr(1)
|
||||
matches = _.get(classTable, classToApply, []);
|
||||
matches = _.get(classTable, classToApply, [])
|
||||
if (_.isEmpty(matches)) {
|
||||
if (_.isEmpty(shadowLookup)) {
|
||||
// prettier-ignore
|
||||
throw onError(`\`@apply\` cannot be used with \`${classToApply}\` because \`${classToApply}\` either cannot be found, or it's actual definition includes a pseudo-selector like :hover, :active, etc. If you're sure that \`${classToApply}\` exists, make sure that any \`@import\` statements are being properly processed *before* Tailwind CSS sees your CSS, as \`@apply\` can only be used for classes in the same CSS tree.`);
|
||||
throw onError(`\`@apply\` cannot be used with \`${classToApply}\` because \`${classToApply}\` either cannot be found, or it's actual definition includes a pseudo-selector like :hover, :active, etc. If you're sure that \`${classToApply}\` exists, make sure that any \`@import\` statements are being properly processed *before* Tailwind CSS sees your CSS, as \`@apply\` can only be used for classes in the same CSS tree.`)
|
||||
}
|
||||
|
||||
return findClass(classToApply, shadowLookup, {}, '', onError);
|
||||
return findClass(classToApply, shadowLookup, {}, '', onError)
|
||||
}
|
||||
} else {
|
||||
// prettier-ignore
|
||||
throw onError(`\`@apply\` cannot be used with \`${classToApply}\` because \`${classToApply}\` either cannot be found, or it's actual definition includes a pseudo-selector like :hover, :active, etc. If you're sure that \`${classToApply}\` exists, make sure that any \`@import\` statements are being properly processed *before* Tailwind CSS sees your CSS, as \`@apply\` can only be used for classes in the same CSS tree.`)
|
||||
}
|
||||
} else {
|
||||
return findClass(classToApply, shadowLookup, {}, prefix, onError)
|
||||
|
||||
// prettier-ignore
|
||||
throw onError(`\`@apply\` cannot be used with \`${classToApply}\` because \`${classToApply}\` either cannot be found, or it's actual definition includes a pseudo-selector like :hover, :active, etc. If you're sure that \`${classToApply}\` exists, make sure that any \`@import\` statements are being properly processed *before* Tailwind CSS sees your CSS, as \`@apply\` can only be used for classes in the same CSS tree.`)
|
||||
}
|
||||
|
||||
return findClass(classToApply, shadowLookup, {}, prefix, onError)
|
||||
}
|
||||
|
||||
if (matches.length > 1) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue