diff --git a/index.js b/index.js index e808dd8..a298f3f 100644 --- a/index.js +++ b/index.js @@ -1,18 +1,17 @@ const _ = require('lodash') -module.exports = function() { - return function({ addUtilities, e, theme, variants }) { - const utilities = _.fromPairs( - _.map(theme('textShadow'), (value, modifier) => { - const className = modifier === 'default' ? 'text-shadow' : `${e(`text-shadow-${modifier}`)}` - return [ - `.${className}`, - { - 'text-shadow': value, - }, - ] - }) - ) - addUtilities(utilities, variants('textShadow')) - } +module.exports = function({ addUtilities, e, theme, variants }) { + const utilities = _.fromPairs( + _.map(theme('textShadow'), (value, modifier) => { + const className = modifier === 'default' ? 'text-shadow' : `${e(`text-shadow-${modifier}`)}` + return [ + `.${className}`, + { + 'text-shadow': value, + }, + ] + }) + ) + addUtilities(utilities, variants('textShadow')) } +