Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
browserify-resolutions
Advanced tools
A Browserify plugin that allows more explicit control of module deduping. It purges duplicate modules from the output bundle and prevents modules from loading several times.
#browserify-resolutions Bower resolutions for npm + Browserify... sort of.
A Browserify plugin that allows more explicit control of module deduping. It purges duplicate modules from the output bundle and prevents modules from loading several times.
A large dependency tree may include multiple versions of the same module, which may result in it being bundled multiple times, greatly increasing the bundle's size.
npm dedupe
?It can be sufficient, but is sometimes hamstrung as third party modules may be asking for incompatible versions of the same library.
peerDependencies
?Hopefully solves this problem in the future, but currently difficult to work with: https://github.com/npm/npm/issues/6565
It currently only dedupes identical source files. Even if deduped, a library may be instantiated several times.
E.g., even if Angular is deduped and only bundled once, you may still see:
WARNING: Tried to load angular more than once.
Pass either an array of package names to dedupe or "*" to dedupe everything possible.
var resolutions = require('browserify-resolutions');
// Dedupe Angular
browserify(options)
.plugin(resolutions, ['angular'])
.bundle();
// Dedupe everything possible
browserify(options)
.plugin(resolutions, '*')
.bundle();
FAQs
A Browserify plugin that allows more explicit control of module deduping. It purges duplicate modules from the output bundle and prevents modules from loading several times.
The npm package browserify-resolutions receives a total of 68 weekly downloads. As such, browserify-resolutions popularity was classified as not popular.
We found that browserify-resolutions demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.