pixeldesu / moduleRaid

:gift: Taking apart webpackJsonp
MIT License
157 stars 45 forks source link

Find modules by query function #3

Closed pedroslopez closed 5 years ago

pedroslopez commented 5 years ago

Adds the ability to search for modules using a query function, allowing more complex searches.

This is as discussed in issue #2.

Note: I have not updated the minified file, because I'm not sure if you have a preferred minification tool or what your process for this is.

Feedback appreciated, let me know if anything should be changed.

pixeldesu commented 5 years ago

Finally had time to review this, and looks fine to me! Tested the functionality with both functions and string searches and everything was returned as expected! 👍

No worries about the minified file, I will update it as I prepare the next release (after merging this PR basically).

I should really automate the process of minification, but I haven't found the time to do so, for now I just manually put it through UglifyJS 3 and then wrap the moduleRaid function in a self-running (function() {...})();.

Thanks for your contribution, I appreciate that very much!