Browserify transform to declare undeclared module.exports variables
npm install declareifyThis is a very simple transform that turns this:
``javascript`
module.exports = myCoolModuleName = function () {
...
}
Into this:
`javascript`
var myCoolModuleName
module.exports = myCoolModuleName = function () {
...
}
npm install declareify
`Usage
`
browserify ... -t declareify
`Or:
`
// package.json
...
browserify: {
transform: [ 'declareify' ]
}
...
``