I have the following setup in my package.json file:
"browserify": {
"transform": [
"browserify-shim"
]
},
"browserify-shim": {
"jquery": "global:$"
}
This works fine except when an installed node_module like backbone does a 'require('jquery)', browserify-shim transform will not apply to the node_module and give me an error saying it can not find the jquery module.
If I add the above code to the package.json file of node_modules/backbone all woks fine.