From 05d26a5d435033f5fd285825e9bd93100cc9b94e Mon Sep 17 00:00:00 2001 From: Adam Wathan Date: Thu, 3 Jun 2021 11:08:04 -0400 Subject: [PATCH] Make createContext arguments optional For Brad! --- src/jit/lib/setupContextUtils.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/jit/lib/setupContextUtils.js b/src/jit/lib/setupContextUtils.js index 89080e075..ec8af952c 100644 --- a/src/jit/lib/setupContextUtils.js +++ b/src/jit/lib/setupContextUtils.js @@ -479,7 +479,12 @@ function registerPlugins(plugins, context) { } } -export function createContext(tailwindConfig, changedContent, tailwindDirectives, root) { +export function createContext( + tailwindConfig, + changedContent = [], + tailwindDirectives = new Set(), + root = postcss.root() +) { let context = { disposables: [], ruleCache: new Set(),