circular-dependency-plugin icon indicating copy to clipboard operation
circular-dependency-plugin copied to clipboard

Support for ignore React.lazy async imports

Open Smoothsmith opened this issue 3 years ago • 0 comments

Apologies if this is too similar to https://github.com/aackerman/circular-dependency-plugin/issues/67 - I think this issue I'm having would require a slightly different solution so decided on a new issue.

The 'allowAsyncCycles' flag does not seem to prevent imports like this from being highlighted/warned about: const TestView= React.lazy(() => import('views/TestView'));

To clarify what I'm attempting to do: I'm looking to determine how many circular dependencies we have with the intent of replacing key ones with React.lazy to support code splitting, but since I currently can't exclude the async imports, I am struggling to see an effective way to achieve this.

Smoothsmith avatar Jun 10 '21 11:06 Smoothsmith