javascript - Browserify require sibling file from an npm repository -


i have module require in .js file. module has 2 files a.js , b.js siblings, a.js being main file in package.json.

both a.js , b.js available via module.exports. when use

require("mymodule") 

i a.js. need b.js required. , a.js not importing b.js in anyway. searched net solution dint find one. please help. thanks.


Comments