Created
April 16, 2022 21:19
-
-
Save a-gu/602ff0c931ac696f016e4b790426a295 to your computer and use it in GitHub Desktop.
Search webpack chunks for functions of interest
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Retrieve functions from all chunks | |
const webpackChunkFns = this.webpackChunk.flatMap(c => Object.values(c[1])); | |
// Filter by RegEx match | |
webpackChunkFns.filter(f => /hello world/.test(f.toString())); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment