From e0784938431ca68e118ed769bf9eb487de0f21c6 Mon Sep 17 00:00:00 2001 From: roydebangshu <58878367+roydebangshu@users.noreply.github.com> Date: Tue, 24 Mar 2020 16:08:57 +0530 Subject: [PATCH] Function declarartion pattern changed. --- index.js | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) 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')) } +