Skip to content

Commit

Permalink
Improved resolution of explicitly imported ones
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianRappl committed Oct 18, 2023
1 parent 765103f commit ac16e4e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/tooling/piral-cli/src/common/importmap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,8 @@ async function resolveImportmap(
}

if (Array.isArray(inheritedImports)) {
const excluded = Array.isArray(excludedImports)
? [...options.excludedDependencies, ...excludedImports]
: options.excludedDependencies;
const includedImports = [...options.excludedDependencies, ...dependencies.map((m) => m.name)];
const excluded = Array.isArray(excludedImports) ? [...includedImports, ...excludedImports] : includedImports;

for (const inheritedImport of inheritedImports) {
const otherDependencies = await getInheritedDependencies(inheritedImport, dir, excluded);
Expand Down

0 comments on commit ac16e4e

Please sign in to comment.