We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf68216 commit 6ba0337Copy full SHA for 6ba0337
1 file changed
packages/build-infra/lib/platform-targets.mts
@@ -193,11 +193,9 @@ export function parsePlatformTarget(target) {
193
// Handle standard platform-arch.
194
const parts = target.split('-')
195
if (parts.length === 2) {
196
- let [platform, arch] = parts
+ const [rawPlatform, arch] = parts
197
// Normalize 'win' to 'win32' for internal use.
198
- if (platform === 'win') {
199
- platform = 'win32'
200
- }
+ const platform = rawPlatform === 'win' ? 'win32' : rawPlatform
201
if (VALID_PLATFORMS.includes(platform) && VALID_ARCHS.includes(arch)) {
202
return { arch, platform }
203
}
0 commit comments