Closed fiatjaf closed 9 years ago
In https://github.com/eHealthAfrica/couchdb-best-practices/blob/gh-pages/README.md#modularize-view-code it is said that "Some features are not supported, for example the assignment of a function", but I'm on CouchDB 1.5 and I can assure I'm using a lot of
module.exports = function () {}
and they are all working. What is happening?
You're totally right! CouchDB has updated long time ago from CommonJS 1.1 to CommonJS 1.1.1. @caolan has written a comprehensive blog post called CommonJS modules in CouchDB.
Thanks for reporting, I will fix this.
In https://github.com/eHealthAfrica/couchdb-best-practices/blob/gh-pages/README.md#modularize-view-code it is said that "Some features are not supported, for example the assignment of a function", but I'm on CouchDB 1.5 and I can assure I'm using a lot of
and they are all working. What is happening?