Make createContext arguments optional

For Brad!
This commit is contained in:
Adam Wathan 2021-06-03 11:08:04 -04:00
parent 65fde59f6a
commit 05d26a5d43

View File

@ -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(),