Skip to content

Commit 021ce94

Browse files
committed
Unwrap config in inner function
Unwrapping in the outer function causes it to get cached during watching.
1 parent 260ce82 commit 021ce94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/substituteVariantsAtRules.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ const variantGenerators = {
2323
}
2424

2525
export default function(config) {
26-
const separator = config().options.separator
27-
2826
return function(css) {
27+
const separator = config().options.separator
28+
2929
css.walkAtRules('variants', atRule => {
3030
const variants = postcss.list.comma(atRule.params)
3131

0 commit comments

Comments
 (0)