mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
Ensure changes to withOptions plugins trigger rebuilds
This commit is contained in:
parent
23561bdd40
commit
ef3d655e7b
@ -15,6 +15,11 @@ createPlugin.withOptions = function (pluginFunction, configFunction = () => ({})
|
||||
|
||||
optionsFunction.__isOptionsFunction = true
|
||||
|
||||
// Expose plugin dependencies so that `object-hash` returns a different
|
||||
// value if anything here changes, to ensure a rebuild is triggered.
|
||||
optionsFunction.__pluginFunction = pluginFunction
|
||||
optionsFunction.__configFunction = configFunction
|
||||
|
||||
return optionsFunction
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user