Skip to content

Commit

Permalink
Fix types with external all option
Browse files Browse the repository at this point in the history
  • Loading branch information
ije committed Jan 12, 2023
1 parent 3b64235 commit 77ae2d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/dts_transform.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func (task *BuildTask) copyDTS(dts string, buildVersion int, aliasDepsPrefix str
}
}

if task.external.Has("*") && !isLocalImport(importPath) {
if task.external.Has("*") && !strings.HasPrefix(pkgName, "@types/") && !isLocalImport(importPath) {
return importPath
}

Expand Down

0 comments on commit 77ae2d3

Please sign in to comment.