Sign in
apache
/
nifi-fds
/
gh-pages
/
.
/
node_modules
/
webpack-cli
/
node_modules
/
rechoir
/
lib
/
normalize.js
blob: 7e974f6dd2efc57ccfd3c8ee4113d60989f11bf6 [
file
] [
log
] [
blame
]
function
normalizer
(
config
)
{
if
(
typeof
config
===
'string'
)
{
return
{
module
:
config
};
}
return
config
;
}
module
.
exports
=
function
(
config
)
{
if
(
Array
.
isArray
(
config
))
{
return
config
.
map
(
normalizer
);
}
return
normalizer
(
config
);
};