Skip to content

Must use @babel/plugin-transform-runtime even though I am using it #854

@puchm

Description

@puchm
  • Rollup Plugin Name: Babel
  • Rollup Plugin Version: 5.3.0
  • Rollup Version: 2.44.0
  • Operating System (or Browser): Win10 18363.1379
  • Node Version: 12.18.2
  • Link to reproduction (⚠️ read below): https://github.com/puchm/rollup-issue-demo
    Sorry, it's not using the Rollup REPL - it's very minimal though since I created it from scratch. I hope this is ok.

Expected Behavior

When @babel/plugin-transform-runtime is in the Babel plugins array inside .babelrc, the following error has no reason to appear as far as I'm concerned:

Error: You must use the `@babel/plugin-transform-runtime` plugin when `babelHelpers` is "runtime"

Actual Behavior

The above error message appears.

Additional Information

When making the reproduction repo I noticed that this issue pops up as soon as I add the Node resolve plugin. (babel.config.js, lines 17-19). When I remove those lines the error doesn't appear. Instead, it fails to resolve the import from main.ts to test.ts.

What is the issue here?

Thanks,
-Moritz

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