From 8bfacc139a85acc72700f38c82de5a63aced2037 Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Sat, 24 Aug 2024 02:34:50 -0300 Subject: [PATCH] Clarify mapMangledModule can be used for primitive values --- src/webpack/api.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/webpack/api.tsx b/src/webpack/api.tsx index e822a4f14..27ca3b699 100644 --- a/src/webpack/api.tsx +++ b/src/webpack/api.tsx @@ -464,6 +464,8 @@ export function findByFactoryCode(...code: CodeFilter | [...CodeFilter, * Find the module exports of the first module which the factory when stringified includes all the given code, * then map them into an easily usable object via the specified mappers. * + * IMPORTANT: mapMangledModule is the only way to webpack find primitive values, as long as you dont destructure them at top level. + * * IMPORTANT: You can destructure the properties of the returned object at top level as long as the property filter does not return a primitive value export. * * @example