Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
Make sure plugin doesn't break when no options passed in
  • Loading branch information
marsjosephine authored Jun 17, 2016
1 parent 7a19898 commit ee1a5a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ var reactDocgenMarkdown = require('./src/react-docgen-md');
var PLUGIN_NAME = 'gulp-react-docs';

module.exports = function(options) {
options = options || {};

return through.obj(function(file, encoding, cb) {
if (file.isNull()) {
return cb(null, file);
Expand Down

0 comments on commit ee1a5a0

Please sign in to comment.