mirror of
https://github.com/zhigang1992/esbuild.git
synced 2026-04-30 18:32:49 +08:00
fix "exports" path resolution for scoped packages
This commit is contained in:
@@ -717,7 +717,7 @@ func esmParsePackageName(packageSpecifier string) (packageName string, packageSu
|
||||
if slash2 == -1 {
|
||||
slash2 = len(packageSpecifier[slash+1:])
|
||||
}
|
||||
packageName = packageSpecifier[:slash]
|
||||
packageName = packageSpecifier[:slash+1+slash2]
|
||||
}
|
||||
|
||||
if strings.HasPrefix(packageName, ".") || strings.ContainsAny(packageName, "\\%") {
|
||||
|
||||
Reference in New Issue
Block a user