Skip to content

Commit

Permalink
Clean up dep url
Browse files Browse the repository at this point in the history
  • Loading branch information
ije committed Jul 2, 2023
1 parent 3c8f382 commit c0669ab
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions server/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -992,10 +992,12 @@ func (task *BuildTask) resolveExternal(specifier string, kind api.ResolveKind) s
}
args := BuildArgs{
alias: cloneMap(task.Args.alias),
external: newStringSet(), // remove `?external` args
treeShaking: newStringSet(), // remove `?exports` args
conditions: newStringSet(), // remove `?conditions` args
external: newStringSet(task.Args.external.Values()...),
treeShaking: newStringSet(),
conditions: newStringSet(),
}
delete(args.alias, pkgName)
args.external.Remove(pkgName)
if stableBuild[pkgName] {
args.alias = map[string]string{}
}
Expand Down

0 comments on commit c0669ab

Please sign in to comment.