Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for ignore React.lazy async imports #76

Open
Smoothsmith opened this issue Jun 10, 2021 · 0 comments
Open

Support for ignore React.lazy async imports #76

Smoothsmith opened this issue Jun 10, 2021 · 0 comments

Comments

@Smoothsmith
Copy link

Apologies if this is too similar to #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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant