Skip to content

Commit 3592646

Browse files
committed
remove externals changes
1 parent 8436ace commit 3592646

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

packages/cli-v3/src/build/externals.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,10 @@ function createExternalsCollector(
175175
});
176176

177177
maybeExternals.forEach((external) => {
178+
logger.debug("[externals][onResolve] Creating onResolve handler for maybe external", {
179+
external,
180+
});
181+
178182
build.onResolve({ filter: external.filter, namespace: "file" }, async (args) => {
179183
// Check if the external is already in the externals collection
180184
if (externals.find((e) => e.name === external.raw)) {
@@ -524,7 +528,7 @@ function makeExternalRegexp(packageName: string): RegExp {
524528
const escapedPkg = packageName.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
525529

526530
// Create the regex pattern
527-
const pattern = `^${escapedPkg}(?:/[^'"]*)?$`;
531+
const pattern = `^${escapedPkg}(?:/.*)?$`;
528532

529533
return new RegExp(pattern);
530534
}

0 commit comments

Comments
 (0)