Skip to content

Commit 0862902

Browse files
authored
chore(repo): update commonjs comment to clarify top-level this rewrite (#1888)
refactor(commonjs): update comment to clarify top-level `this` rewrite
1 parent ad58c8d commit 0862902

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/commonjs/src/transform-commonjs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ export default async function transformCommonjs(
366366
}
367367
return;
368368
case 'ThisExpression':
369-
// rewrite top-level `this` as `commonjsHelpers.commonjsGlobal`
369+
// rewrite top-level `this` as `exportsName`
370370
if (lexicalDepth === 0 && !classBodyDepth) {
371371
uses.global = true;
372372
if (!ignoreGlobal) {

0 commit comments

Comments
 (0)