Skip to content

Commit e078493

Browse files
committed
Function declarartion pattern changed.
1 parent 4205738 commit e078493

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

index.js

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
const _ = require('lodash')
22

3-
module.exports = function() {
4-
return function({ addUtilities, e, theme, variants }) {
5-
const utilities = _.fromPairs(
6-
_.map(theme('textShadow'), (value, modifier) => {
7-
const className = modifier === 'default' ? 'text-shadow' : `${e(`text-shadow-${modifier}`)}`
8-
return [
9-
`.${className}`,
10-
{
11-
'text-shadow': value,
12-
},
13-
]
14-
})
15-
)
16-
addUtilities(utilities, variants('textShadow'))
17-
}
3+
module.exports = function({ addUtilities, e, theme, variants }) {
4+
const utilities = _.fromPairs(
5+
_.map(theme('textShadow'), (value, modifier) => {
6+
const className = modifier === 'default' ? 'text-shadow' : `${e(`text-shadow-${modifier}`)}`
7+
return [
8+
`.${className}`,
9+
{
10+
'text-shadow': value,
11+
},
12+
]
13+
})
14+
)
15+
addUtilities(utilities, variants('textShadow'))
1816
}
17+

0 commit comments

Comments
 (0)