Skip to content

Latest update broke Bun #6119

@ktdd

Description

@ktdd

Rollup Version

v4.52.0

Operating System (or Browser)

Windows 11

Node Version (if applicable)

No response

Link To Reproduction

Not needed

Expected Behaviour

Would expect rollup to not throw any errors

Actual Behaviour

When starting development, rollup\dist\native.js throws a TypeError: undefined is not an object (evaluating 'report.getReport().header.osName')

This is because process.report.getReport is not implemented on Bun / Windows: oven-sh/bun#11992

An easy fix would be to change the line from

base: report.getReport().header.osName.startsWith('MINGW32_NT')

to

base: report.getReport().header?.osName.startsWith('MINGW32_NT')

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions