This commit is contained in:
Nuckyz 2024-06-21 04:52:08 -03:00
parent 066001c57a
commit 343e2802c3
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -630,15 +630,15 @@ export function search(...filters: Array<string | RegExp>) {
* @param id The id of the module to extract
*/
export function extract(id: PropertyKey) {
const mod = wreq.m[id];
if (!mod) return null;
const factory = wreq.m[id];
if (!factory) return null;
const code = `
// [EXTRACTED] WebpackModule${String(id)}
// WARNING: This module was extracted to be more easily readable.
// This module is NOT ACTUALLY USED! This means putting breakpoints will have NO EFFECT!!
0,${String(mod)}
0,${String(factory)}
//# sourceURL=ExtractedWebpackModule${String(id)}
`;
const extracted: ModuleFactory = (0, eval)(code);