code: function printStack(err) {
    if (err && err.stack) {
      console.error(err.stack);
    }
    else {
      console.log(err);
    }
  }
docs: Alternate syntax.  bundler(loader, {}) .bundle(["./js/Name.js"]) .then(log2console, printStack);