diff --git a/packages/compiler/src/frontend/pipeline.ts b/packages/compiler/src/frontend/pipeline.ts index 27b2d3d88..c4bd921c3 100644 --- a/packages/compiler/src/frontend/pipeline.ts +++ b/packages/compiler/src/frontend/pipeline.ts @@ -545,7 +545,9 @@ function loadFrontend( // The shared preflight/lowering refusal and dependency-closure checks remain. // Node island packages are judged already: they stay out of the // program, typed by their declarations (scope-B NI-4). - const judged = new Set([...libraryNpmStatic, ...(options.islandPackages ?? [])]); + const judged = new Set(libraryNpmStatic); + if (options.islandPackages !== undefined) + for (const name of options.islandPackages) judged.add(name); let requested: string[] = []; let reusableScout: ReturnType | null = null; let reusablePreflight: ScrDiagnostic[] | null = null;