Remove more dead code
This commit is contained in:
parent
20588c9ea7
commit
ca524ef7c2
2 changed files with 0 additions and 153 deletions
|
|
@ -1,20 +0,0 @@
|
|||
import _ from 'lodash'
|
||||
import postcss from 'postcss'
|
||||
import wrapWithVariants from '../util/wrapWithVariants'
|
||||
|
||||
export default function(modules, moduleOptions, generatorOptions = {}) {
|
||||
modules.forEach(module => {
|
||||
if (!_.has(moduleOptions, module.name)) {
|
||||
throw new Error(`Module \`${module.name}\` is missing from moduleOptions.`)
|
||||
}
|
||||
})
|
||||
|
||||
return postcss.root({
|
||||
nodes: _(modules)
|
||||
.reject(module => moduleOptions[module.name] === false)
|
||||
.flatMap(module =>
|
||||
wrapWithVariants(module.generator(generatorOptions), moduleOptions[module.name])
|
||||
)
|
||||
.value(),
|
||||
})
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue