-
Notifications
You must be signed in to change notification settings - Fork 10
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
Module migrator can generate @use loops #137
Labels
Comments
nex3
changed the title
Migrator can generate @use loops
Module migrator can generate @use loops
Feb 4, 2020
The given example may be a bit misleading. Here's another example to provide to elaborate further.
Output:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If the entrypoint imports a file that uses variables that were originally defined in the entrypoint, the migrator generates a
@use
that imports the original file. For example:is migrated to:
This is invalid, as it creates a dependency loop. Since it's not totally clear what the user intended, the migrator should probably error out.
The text was updated successfully, but these errors were encountered: