Skip to content

@rolldown/plugin-babel with @babel/preset-env generates runtime error: Uncaught TypeError: __commonJSMin is not a function #53

@ziloen

Description

@ziloen

Related plugins

Describe the bug

It seems the output generated by Rolldown + Babel is incompatible in this case, or Babel is transforming something that breaks Rolldown's runtime helper usage.

Reproduction

https://stackblitz.com/edit/nn5hacmg?file=rolldown.config.js&view=editor

Steps to reproduce

No response

System Info

System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 22.22.0 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.8.2 - /usr/local/bin/npm
    pnpm: 8.15.6 - /usr/local/bin/pnpm
  npmPackages:
    @rolldown/browser:  1.0.0-rc.13 
    @rolldown/plugin-babel: ^0.2.2 => 0.2.2

Used Package Manager

pnpm

Validations

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