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