<commit_before># browserify-dedupe-patch
Patches a bug in pre 8.0 browserify where watchify breaks bundle when modules are mistakenly deduped with full paths.<commit_msg>Update README with context as to why we need this patch.<commit_after># 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](https://github.com/substack/node-browserify/issues/940)

In the thread, [saschagehlich](https://github.com/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](https://github.com/saschagehlich) to simply not dedupe the files by not adding to the bundle.

[substack](https://github.com/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!
{'fraction_non_alphanumeric': 0.06201550387596899, 'fraction_numerical': 0.013953488372093023, 'mean_word_length': 4.637554585152839, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5638377', 'n_tokens_mistral': 379, 'n_tokens_neox': 357, 'n_words': 180}