Don’t break tools using custom build

This commit is contained in:
Jordan Pittman 2023-06-14 13:11:05 -04:00 • committed by Robin Malfait
parent dfb0958147
commit 665569d626
No known key found for this signature in database
GPG key ID: 92F53D68B9041AFE

View file

@ -80,7 +80,7 @@ function getTailwindConfig(configOrPath, cssThemeValues) {
// Retrieve an existing context from cache if possible (since contexts are unique per
// source path), or set up a new one (including setting up watchers and registering
// plugins) then return it
export default function setupTrackingContext(configOrPath, cssThemeValues) {
export default function setupTrackingContext(configOrPath, cssThemeValues = {}) {
return ({ tailwindDirectives, registerDependency }) => {
return (root, result) => {
let [tailwindConfig, userConfigPath, tailwindConfigHash, configDependencies] =