-
-
Notifications
You must be signed in to change notification settings - Fork 10
Closed
Labels
🏡 area/internalThis affects the hidden internalsThis affects the hidden internals👶 semver/patchThis is a backwards-compatible fixThis is a backwards-compatible fix💪 phase/solvedPost is donePost is done🦋 type/enhancementThis is great to haveThis is great to have
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
| var pseudo = require('./pseudo') |
unist-util-select/lib/pseudo.js
Line 8 in 2269b1c
| var anything = require('./any') |
Thank you for your work
Metadata
Metadata
Assignees
Labels
🏡 area/internalThis affects the hidden internalsThis affects the hidden internals👶 semver/patchThis is a backwards-compatible fixThis is a backwards-compatible fix💪 phase/solvedPost is donePost is done🦋 type/enhancementThis is great to haveThis is great to have