Skip to content

Rollup throws TRANSPILED_ESM_CONFIG error when importing ESM module #4617

@flying-sheep

Description

@flying-sheep

Rollup Version

2.78.1

Operating System (or Browser)

Linux/Firefox

Node Version (if applicable)

No response

Link To Reproduction

https://replit.com/@flying-sheep/rollup-repro-esm-from-ts

Expected Behaviour

rollup.config.ts gets compiled to ESM and imports <projdir>/node_modules/@mdx-js/rollup/index.js as ESM

Actual Behaviour

rollup.config.ts seems to get compiled to CJS despite target: ES2020 in the tsconfig.json.

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