When the override option is supplied to override the main attribute of a dependency, it is not taken into account.
I tried to find a workaround for the library supplying index.js instead of the implementation file by overriding the main attribute, but it was not taken into account.
E.G. for dependency in package.json {"angular": "1.5.9"}
when wiredep is used index.js is supplied as a js dependency (which is correct since index.js is defined as "main" in the package.json of angular).
When I instantiate npm-wiredep I try to override this by supplying a config object
wiredep({"overrides": {
"angular": {
"dependencies": {
"jquery": "2.2.1"
},
"main" : "angular.js"
}}})
After this index.js is supplied again as dependency for this package.
When the override option is supplied to override the main attribute of a dependency, it is not taken into account.
I tried to find a workaround for the library supplying index.js instead of the implementation file by overriding the main attribute, but it was not taken into account.
E.G. for dependency in package.json {"angular": "1.5.9"}
when wiredep is used index.js is supplied as a js dependency (which is correct since index.js is defined as "main" in the package.json of angular).
When I instantiate npm-wiredep I try to override this by supplying a config object
After this index.js is supplied again as dependency for this package.