Skip to content

Plugin unusable with "Reentrant plugin detected" #4

@JohnAlbin

Description

@JohnAlbin

When following the README.md's usage instructions to compile native Node.js ES Module code into CommonJS, I get the following error:

Error: [BABEL]: Reentrant plugin detected trying to load "./node_modules/babel-plugin-replace-import-extension/src/index.js". This module is not ignored and is trying to load itself while compiling itself, leading to a dependency cycle.

I tried both options for ESM->CJS (with or without @babel/present-env) and got the same error both times.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions