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

Make extraImports lazy #1043

Merged
merged 4 commits into from
Dec 9, 2021
Merged

Make extraImports lazy #1043

merged 4 commits into from
Dec 9, 2021

Conversation

ef4
Copy link
Contributor

@ef4 ef4 commented Dec 8, 2021

The PackageRules system can account for undeclared dependencies between third-party modules.

Right now it generates top-level static imports for those things. But this can make them eager where they weren't before, which can run afoul of module cycles.

This PR is attempting to make them lazy by using importSync instead.

Note that not all environments support a lazy importSync, but the default webpack one does. It's still helpful as a compatibility path, as the ecosystem refactors away from needing PackageRules.

@ef4 ef4 added the bug Something isn't working label Dec 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant