Skip to content

Commit 7427e0b

Browse files
committed
Improve documentation.
1 parent b583b0f commit 7427e0b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

libraries/rush-sdk/src/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@ declare const global: NodeJS.Global &
3333

3434
function _require<TResult>(moduleName: string): TResult {
3535
if (typeof __non_webpack_require__ === 'function') {
36-
// If this library has been webpacked, we need to call the real `require` function
37-
// that doesn't get turned into a __webpack_require__ statement
36+
// If this library has been bundled with Webpack, we need to call the real `require` function
37+
// that doesn't get turned into a `__webpack_require__` statement.
38+
// `__non_webpack_require__` is a Webpack macro that gets turned into a `require` statement
39+
// during bundling.
3840
return __non_webpack_require__(moduleName);
3941
} else {
4042
return require(moduleName);

0 commit comments

Comments
 (0)