How to access module.export in browserified js


#1

I browserified a js file that declares module.exports like this:

'use strict';

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

I’ve included the browserified bundle.js in my index.html and I’m trying to call the exported function from my ts class. But it can’t be found. I’ve tried giving the js function an explicit name and so on but whatever I put it cannot be found. Any help?