syntax-tree/xast-util-to-xml

Rollup reports circular dependency import between one.js and all.js files

jedrzejchalubek opened this issue · 1 comments

Initial checklist

Affected packages and versions

3.0.1

Link to runnable example

No response

Steps to reproduce

Bundling package using rollup.js gives this message:

Circular dependency: ../../node_modules/xast-util-to-xml/lib/one.js -> ../../node_modules/xast-util-to-xml/lib/all.js -> ../../node_modules/xast-util-to-xml/lib/one.js

The bundle

Expected behavior

The one.js and all.js files should not import each other

Actual behavior

The one.js and all.js import each other causing circular dependency

Affected runtime and version

node@19

Affected package manager and version

No response

Affected OS and version

No response

Build and bundle tools

Rollup

Released in 3.0.2!