Skip to content

Commit

Permalink
Pure comment for $parcel$interopDefault (#6271)
Browse files Browse the repository at this point in the history
  • Loading branch information
mischnic committed May 13, 2021
1 parent e6edf65 commit ae4f6f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import x from "./b.js";

let value = x;
if (false) {
console.log(x);
console.log(value);
}
2 changes: 1 addition & 1 deletion packages/packagers/js/src/ScopeHoistingPackager.js
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ ${code}
this.needsDefaultInterop(resolvedAsset)
) {
this.usedHelpers.add('$parcel$interopDefault');
return `($parcel$interopDefault(${obj}))`;
return `(/*@__PURE__*/$parcel$interopDefault(${obj}))`;
} else {
if (IDENTIFIER_RE.test(exportSymbol)) {
return `${obj}.${exportSymbol}`;
Expand Down

0 comments on commit ae4f6f8

Please sign in to comment.