Skip to content

browserify-shim only works at top level of project and not at node_module level. #172

@cyruszah

Description

@cyruszah

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions