taptapship / wiredep

Wire Bower dependencies to your source code.
MIT License
1.15k stars 142 forks source link

wiredep with exclude sometimes returns undefiend #280

Open zivkaziv opened 4 years ago

zivkaziv commented 4 years ago

Hey all,

I'm facing really strange issue in our CI\CD. Sometimes our build failed due to

Invalid glob argument: undefined

After investigating where is this undefined coming from, I've found that const wiredep = require('wiredep'); const js = wiredep({exclude:[/jquery/, /font-awesome/]).js; So now the js sometimes returns undefined.

Without the exclude options it works.

Any idea what I'm doing wrong? Please help...

Thanks Z