You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run webpack with circular-dependency-plugin enabled.
Expected Result: Circular dependency of TableRenderer -> Table -> TableRenderer. Actual Result: No circular dependency found.
Due to type erasure, and the circular-dependency-plugin's usage of compilation.hooks.optimizeModules, it looks like this isn't easily solvable. Perhaps there is a hook earlier in the webpack life cycle that provides dependencies prior to type erasure? I'm not sure.
The text was updated successfully, but these errors were encountered:
Note that pahen/madge appears to avoid the issue of type erasure by parsing/checking the AST directly rather than relying on generated webpack assets (which has pros and cons). I mention it here in case someone is investigating tools to circumvent this issue.
Steps to Reproduce:
TableRenderer.ts
:Table.ts
:circular-dependency-plugin
enabled.Expected Result: Circular dependency of
TableRenderer -> Table -> TableRenderer
.Actual Result: No circular dependency found.
Due to type erasure, and the
circular-dependency-plugin
's usage ofcompilation.hooks.optimizeModules
, it looks like this isn't easily solvable. Perhaps there is a hook earlier in the webpack life cycle that provides dependencies prior to type erasure? I'm not sure.The text was updated successfully, but these errors were encountered: