Skip to content

Commit

Permalink
fix: Fixed webpack injection cache
Browse files Browse the repository at this point in the history
  • Loading branch information
edgardmessias committed Mar 1, 2022
1 parent db8c8c5 commit 15f6b3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/whatsapp/exportModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export function exportModule(
Object.defineProperty(exports, name, {
enumerable: true,
configurable: true,
get: () => {
get() {
let value: any = undefined;
const moduleId = webpack.searchId(condition);

Expand Down Expand Up @@ -81,7 +81,7 @@ export function exportModule(

// Avoid re-searching modules
if (value) {
Object.defineProperty(exports, name, {
Object.defineProperty(this, name, {
get: () => value,
});

Expand Down

0 comments on commit 15f6b3f

Please sign in to comment.