allow any iterable string as input
This way we can pass it an array or a set without first converting it.
This commit is contained in:
parent
02b1794684
commit
50da0a1be2
2 changed files with 2 additions and 2 deletions
|
|
@ -91,7 +91,7 @@ export function createParsedAstNodes(
|
|||
}
|
||||
|
||||
export function compileCandidates(
|
||||
rawCandidates: string[],
|
||||
rawCandidates: Iterable<string>,
|
||||
designSystem: DesignSystem,
|
||||
{
|
||||
parsedVariants = createParsedVariants(designSystem),
|
||||
|
|
|
|||
|
|
@ -212,7 +212,7 @@ export function compile(
|
|||
|
||||
if (tailwindUtilitiesNode) {
|
||||
let previousAstNodeCount = parsedAstNodes.size
|
||||
let newNodes = compileCandidates(Array.from(allCandidates), designSystem, {
|
||||
let newNodes = compileCandidates(allCandidates, designSystem, {
|
||||
parsedVariants,
|
||||
parsedCandidates,
|
||||
parsedAstNodes,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue