Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alshdavid committed Aug 18, 2023
1 parent 87b825a commit 4c21ef7
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions packages/packagers/js/src/ScopeHoistingPackager.js
Original file line number Diff line number Diff line change
Expand Up @@ -1170,15 +1170,13 @@ ${code}
}

for (let helper of this.usedHelpers) {
let helperText = undefined;
if (typeof helper === 'function') {
helperText = helpers[helper](this.bundle.env);
} else {
helperText = helpers[helper];
let currentHelper = helpers[helper];
if (typeof currentHelper === 'function') {
currentHelper = helpers[helper](this.bundle.env);
}
res += helperText;
res += currentHelper;
if (enableSourceMaps) {
lines += countLines(helperText) - 1;
lines += countLines(currentHelper) - 1;
}
}

Expand Down

0 comments on commit 4c21ef7

Please sign in to comment.