From 539738d41836b7851e0917ab2dccf6184512567a Mon Sep 17 00:00:00 2001 From: impulse Date: Wed, 21 Oct 2020 13:12:31 +0200 Subject: [PATCH] fix: show correct key name when enabling darkMode (#2635) --- src/lib/substituteVariantsAtRules.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/substituteVariantsAtRules.js b/src/lib/substituteVariantsAtRules.js index c65cee82d96d..febd89d6f532 100644 --- a/src/lib/substituteVariantsAtRules.js +++ b/src/lib/substituteVariantsAtRules.js @@ -61,7 +61,7 @@ const defaultVariantGenerators = (config) => ({ return modified } - throw new Error("The `dark` config option must be either 'media' or 'class'.") + throw new Error("The `darkMode` config option must be either 'media' or 'class'.") }, { unstable_stack: true } ),