From 5db7f0c94cae6fd0f86fe60a1326aa70955a344c Mon Sep 17 00:00:00 2001 From: Jordan Pittman Date: Tue, 4 Jan 2022 10:44:12 -0500 Subject: [PATCH 1/2] Emit defaults from apply in css modules --- src/lib/expandTailwindAtRules.js | 27 ++++++++++++++++------- tests/apply.test.js | 37 ++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+), 8 deletions(-) diff --git a/src/lib/expandTailwindAtRules.js b/src/lib/expandTailwindAtRules.js index addf2c666169..9aa91f0e94fb 100644 --- a/src/lib/expandTailwindAtRules.js +++ b/src/lib/expandTailwindAtRules.js @@ -140,17 +140,28 @@ export default function expandTailwindAtRules(context) { variants: null, } - // Make sure this file contains Tailwind directives. If not, we can save - // a lot of work and bail early. Also we don't have to register our touch - // file as a dependency since the output of this CSS does not depend on - // the source of any templates. Think Vue