Replies: 1 comment 2 replies
-
Are you using rust? I don't know well about swc_ecma_dep_graph (I didn't write and the bundler uses its own dependency analyzer because of deglobbing), but I can take a look. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am writing a simple tool to walk the module graph and I noticed that on some occasions import specifiers are repeated multiple times for a single call to
require()
.A good example is importing
react
which yields this tree:The struct looks like this:
When i inspect
react/cjs/react.development.js
there is only a single call torequire()
.I would expect only a single entry in the import specifiers. Is this a bug or do I misunderstand this data structure?
Beta Was this translation helpful? Give feedback.
All reactions