Skip to content

Commit df8d80f

Browse files
committed
Defer unwrapping config until actually evaluating the config() function
1 parent 74fc46a commit df8d80f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/lib/evaluateTailwindFunctions.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@ import _ from 'lodash'
22
import functions from 'postcss-functions'
33

44
export default function(config) {
5-
const options = config()
6-
75
return functions({
86
functions: {
97
config: (path, defaultValue) => {
8+
const options = config()
109
return _.get(options, _.trim(path, `'"`), defaultValue)
1110
},
1211
},

0 commit comments

Comments
 (0)