UNPKG

@arminlinzbauer/gulpex

Version:

Extensible Gulp Wrapper for Easy Set-up and Project Integration (SASS + JS)

14 lines (13 loc) 342 B
function annotate(func, name) { if (typeof func != 'function') { throw Error("Only functions can be named with annotate."); } if (name != null) { return Object.defineProperty(func, 'name', { value: name, configurable: true, }) } return func; } module.exports = { annotate }