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

[Loader] Fix: Track refs to NonNullType #146

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

detrohutt
Copy link
Contributor

@detrohutt detrohutt commented Jan 28, 2018

Hi! I spent yesterday updating the beta branch of my package babel-plugin-inline-import-graphql-ast to support multiple operations like this package. In doing so, I reused a lot of the code from here and noticed that nullable variables were being tracked but non-nullable variables were not. I assume that was not the intention.

I haven't added a test because I'm not familiar with your test configuration (or webpack in general) and didn't see any existing tests covering the variable reference tracking (which is why I'm assuming this slipped through in the first place). If someone can give me any pointers I'm willing to attempt to make some tests.

I've tested it manually in my project and verified that without this code, the Set() will not contain names for non-nullable variables, and with this code it will.

@jnwng jnwng force-pushed the master branch 3 times, most recently from 7fd462d to 8b34c3a Compare February 7, 2018 18:44
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

Successfully merging this pull request may close these issues.

None yet

1 participant