Quickly Fix Bugs in Open Source Community Repositories
In projects, we often use many third-party NPM packages, such as Mousetrap. We usually encounter bugs that have not yet been fixed or merged by the official repository. So, what should we do in such cases? Here is a summary of the methods.
Fork the Repository and Follow the PR Process
You can fork the repository, modify the source code, submit a PR, and wait for the official team to merge and release a new package. This method is undoubtedly the best; it benefits and gives back to the community.
However, this approach’s downside is also quite noticeable. If the official longed and we urgently need the package, this solution may not be very suitable.