Skip to content

Commit 2f03097

Browse files
committed
comment
1 parent c1afd84 commit 2f03097

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/core/src/config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,6 +1029,9 @@ const composeBundlelessExternalConfig = (
10291029
),
10301030
);
10311031

1032+
// Requests that fall through here cannot be matched by any other externals config ahead.
1033+
// Treat all these requests as relative import of source code. Node.js won't add the
1034+
// leading './' to the relative path resolved by `path.relative`. So add manually it here.
10321035
if (resolvedRequest[0] !== '.') {
10331036
resolvedRequest = `./${resolvedRequest}`;
10341037
}

0 commit comments

Comments
 (0)