Replies: 1 comment 4 replies
-
What exactly is the problem you're trying to solve? If you use ESM imports correct, then circular dependencies should work correctly |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to write a plugin that solves circular dependency problem.
For that, I need to reorder modules within the bundle (so the circular dependency is resolved properly).
The question is, how do I properly do this without reimplementing
@parcel/bundler-default
or@parcel/packager-js
? Because default packager/bundler are quite logic-heavy and I don't want to lose all this logic, as well as redo it from scratch.I already have code that figures out proper order of modules, and now I don't know how to tell Parcel that I need that order of modules.
I tried to create a packager plugin, but looks like packager assumes that graph is already built and cannot be modified.
I tried to create a bundler plugin, but I cannot figure out how to tell the mutable graph that I want to remove dependency of asset A on asset B, or to create such dependency.
Beta Was this translation helpful? Give feedback.
All reactions