Closed
Description
Hey, thanks for the amazing work, I’m using Documentation and loving it.
Recently I’ve encountered a problem where Documentation throws an error when trying to parse a .ejs
file which I import
. It works for me, because I have Browserify set up to automagically pre-compile .ejs
files and return a function with ejsify. But Documentation doesn’t know about that. I narrowed in down to Babylon — it seems like that’s what’s choking on non-js files. Is there a way to skip certain extensions or files?
Similar error was thrown when I used this syntax in .js
:
function promiseWaterfall([resolvedPromise, ...tasks]) {
finalTaskPromise = tasks.reduce(function(prevTaskPromise, task) {
return prevTaskPromise.then(task);
}, resolvedPromise([])); // initial value
return finalTaskPromise;
}
This is a new rest syntax from ES6 and it totally works, but Documentation dies on it. Should it maybe just skip something it can’t parse instead of throwing?
Metadata
Metadata
Assignees
Labels
No labels