diff options
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/patchWebpack.ts | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/utils/patchWebpack.ts b/src/utils/patchWebpack.ts index 488e430..ce29c82 100644 --- a/src/utils/patchWebpack.ts +++ b/src/utils/patchWebpack.ts @@ -65,9 +65,11 @@ function patchPush() { if (filter(exports)) { subscriptions.delete(filter); callback(exports); - } else if (exports.default && filter(exports.default)) { - subscriptions.delete(filter); - callback(exports.default); + } else for (const nested in exports) { + if (exports[nested] && filter(exports[nested])) { + subscriptions.delete(filter); + callback(exports[nested]); + } } } catch (err) { logger.error("Error while firing callback for webpack chunk", err); |