Skip to content

Commit

Permalink
Make createContext arguments optional
Browse files Browse the repository at this point in the history
For Brad!
  • Loading branch information
adamwathan committed Jun 3, 2021
1 parent 65fde59 commit 05d26a5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/jit/lib/setupContextUtils.js
Expand Up @@ -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(),
Expand Down

0 comments on commit 05d26a5

Please sign in to comment.