mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
Defer unwrapping config until actually evaluating the config() function
This commit is contained in:
parent
74fc46adb7
commit
df8d80fbbf
@ -2,11 +2,10 @@ import _ from 'lodash'
|
||||
import functions from 'postcss-functions'
|
||||
|
||||
export default function(config) {
|
||||
const options = config()
|
||||
|
||||
return functions({
|
||||
functions: {
|
||||
config: (path, defaultValue) => {
|
||||
const options = config()
|
||||
return _.get(options, _.trim(path, `'"`), defaultValue)
|
||||
},
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user