From f9707015f8b747f271e75fa2670219e50efd81ed Mon Sep 17 00:00:00 2001 From: Adam Wathan Date: Fri, 30 Apr 2021 12:26:16 -0400 Subject: [PATCH] Note new matchUtilities API design --- src/jit/lib/setupContext.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/jit/lib/setupContext.js b/src/jit/lib/setupContext.js index 2b872cf0a..f8bf1c614 100644 --- a/src/jit/lib/setupContext.js +++ b/src/jit/lib/setupContext.js @@ -530,6 +530,19 @@ function buildPluginApi(tailwindConfig, context, { variantList, variantMap, offs } }, matchUtilities: function (utilities, options) { + // TODO: Redesign this API to work like this so it's more end-user friendly + // matchUtilities({ + // animate: (value, { includeRules }) => { + // let { name: animationName } = parseAnimationValue(value) + + // if (keyframes[animationName] !== undefined) { + // includeRules(keyframes[animationName]) + // } + + // return { animation: value } + // }, + // }, { values: [...], variants: [lol], ...otherStuff }) + let defaultOptions = { variants: [], respectPrefix: true,