Skip to content

[Bug]: infer as Infer from zod is being rewritten to infer #8259

@jamietanna

Description

@jamietanna

Reproduction link or steps

When checking out renovatebot/renovate@42103c5, see lib/util/http/http.ts

(I'll shortly try to raise a minimal repro)

What is expected?

// or similar, when built
import type { infer as Infer } from 'zod';
import { ZodType } from 'zod';

What is actually happening?

import { ZodType, infer } from "zod";

System Info

System:
    OS: macOS 26.2
    CPU: (12) arm64 Apple M4 Pro
    Memory: 1.67 GB / 48.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 25.5.0 - /opt/homebrew/bin/node
    Yarn: 1.22.22 - /opt/homebrew/bin/yarn
    npm: 11.8.0 - /opt/homebrew/bin/npm
    pnpm: 10.28.1 - /opt/homebrew/bin/pnpm
  Browsers:
    Chrome: 144.0.7559.133
    Firefox Nightly: 149.0a1
    Safari: 26.2
  npmPackages:
    rolldown: 1.0.0-rc.1 => 1.0.0-rc.1

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Priority

    None yet

    Effort

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions