mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
Fix style
This commit is contained in:
parent
6bd32ad595
commit
53dff626a7
@ -1468,15 +1468,15 @@ test('plugin config can register plugins that also have config', () => {
|
||||
config: {
|
||||
important: true,
|
||||
},
|
||||
handler() {}
|
||||
handler() {},
|
||||
},
|
||||
{
|
||||
config: {
|
||||
separator: '__',
|
||||
},
|
||||
handler() {}
|
||||
handler() {},
|
||||
},
|
||||
]
|
||||
],
|
||||
},
|
||||
handler() {},
|
||||
},
|
||||
@ -1530,9 +1530,9 @@ test('plugin configs take precedence over plugin configs registered by that plug
|
||||
config: {
|
||||
prefix: 'inner-',
|
||||
},
|
||||
handler() {}
|
||||
}
|
||||
]
|
||||
handler() {},
|
||||
},
|
||||
],
|
||||
},
|
||||
handler() {},
|
||||
},
|
||||
|
||||
@ -56,7 +56,7 @@ const getConfigFunction = config => () => {
|
||||
}
|
||||
|
||||
const configObject = _.isObject(config) ? _.get(config, 'config', config) : require(config)
|
||||
|
||||
|
||||
return resolveConfig([configObject, defaultConfig])
|
||||
}
|
||||
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
import some from 'lodash/some'
|
||||
import mergeWith from 'lodash/mergeWith'
|
||||
import isEmpty from 'lodash/isEmpty'
|
||||
import isFunction from 'lodash/isFunction'
|
||||
import isUndefined from 'lodash/isUndefined'
|
||||
import defaults from 'lodash/defaults'
|
||||
@ -102,7 +101,7 @@ function extractPluginConfigs(configs) {
|
||||
allConfigs = [...allConfigs, config]
|
||||
|
||||
const plugins = get(config, 'plugins', [])
|
||||
|
||||
|
||||
if (plugins.length === 0) {
|
||||
return
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user