Skip to content

Patches a bug in pre 8.0 browserify where watchify breaks bundle when modules are mistakenly deduped with full paths.

License

Notifications You must be signed in to change notification settings

YuzuJS/browserify-dedupe-patch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

browserify-dedupe-patch

Patches a bug in pre 8.0 browserify where watchify breaks bundle when modules are mistakenly deduped with full paths.

See browserify issue #940

In the thread, saschagehlich appears to be experiencing the same issue as the YuzuJS team, where when watchify is used modules are mistakenly deduped due to fullPaths.

This patch implements the suggestion of saschagehlich to simply not dedupe the files by not adding to the bundle.

substack claims that this is fixed in the 8.0 branch, however YuzuJS currently using 6.x. So when we are ready to upgrade we will check to see if this bug is indeed fixed in browser >= 8.

Howefully this repo will not have a long life :)

browserify dependency

This patch was only verified with browserify 6.1.

This patch may work for 7.x as well, so instead of listing a peerDependency on 6.x, feel free to use at your own risk!

About

Patches a bug in pre 8.0 browserify where watchify breaks bundle when modules are mistakenly deduped with full paths.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published