Writing CommonJS modules in a CommonJS ddoc
jo opened this issue · comments
Schmidt commented
This is ugly. How could we improve it? Can we improve it?
module.exports = {
lib: {
indexable: 'module.exports = ' + require('./mylib').toString()
}
};
@janl do you have an idea?
Schmidt commented
Also described here: https://github.com/eHealthAfrica/couchdb-best-practices#modularize-view-code