mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
Remove unused lodash dependency, use implicit return
This commit is contained in:
parent
a7ec9c2396
commit
2d91aa8caa
@ -1,5 +1,3 @@
|
||||
const _ = require('lodash')
|
||||
|
||||
module.exports = {
|
||||
prefix: '',
|
||||
important: false,
|
||||
@ -310,9 +308,10 @@ module.exports = {
|
||||
margin: theme => {
|
||||
const negativeSpacing = Object.keys(theme('spacing'))
|
||||
.filter(key => theme('spacing')[key] !== '0')
|
||||
.reduce((negativeSpacing, key) => {
|
||||
return { ...negativeSpacing, [`-${key}`]: `-${theme('spacing')[key]}` }
|
||||
}, {})
|
||||
.reduce((negativeSpacing, key) => ({
|
||||
...negativeSpacing,
|
||||
[`-${key}`]: `-${theme('spacing')[key]}`
|
||||
}), {})
|
||||
|
||||
return {
|
||||
auto: 'auto',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user