Closed
Description
Circular dependency any.js -> pseudo.js -> any.js using rollup
The rollup bundler is printing warnings about the detected circular dependency:
Circular dependency: node_modules/unist-util-select/lib/any.js -> node_modules/unist-util-select/lib/pseudo.js -> node_modules/unist-util-select/lib/any.js
Circular dependency: node_modules/unist-util-select/lib/any.js -> node_modules/unist-util-select/lib/pseudo.js -> /home/delmadord/work/sapper-blog/node_modules/unist-util-select/lib/any.js?commonjs-proxy -> node_modules/unist-util-select/lib/any.js
I will provide MVE to reproduce as soon as confirmed it is necessary. I may be mistaken of course, but from what I believe right now, any code analysis tool that would check for circular dependency issues should be able to spot this, not just rollup.
Lines that I believe lead to this behavior:
Line 6 in 2269b1c
unist-util-select/lib/pseudo.js
Line 8 in 2269b1c
Thank you for your work