Skip to content

Commit 4f1ca9f

Browse files
committed
comment
1 parent 46806c8 commit 4f1ca9f

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
@@ -1028,6 +1028,9 @@ const composeBundlelessExternalConfig = (
10281028
),
10291029
);
10301030

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

0 commit comments

Comments
 (0)