💻
What problem are you trying to solve?
I am using graphql-code-generator, which outputs a single .ts file. Problem is my API is very large, and I've just started to hit your hardcoded limit in node_modules/@babel/traverse/lib/context.js
if (testing && queue.length >= 10000) {
this.trap = true;
}
This is causing a confusing "Infinite cycle detected."
I spent a lot of time digging deep into React looking for my infinite loop before I realized to look at the babel source to see the error I am seeing is potentially misleading.
Describe the solution you'd like
My 3 proposals are:
- Increase the limit to an arbitary 25000
- Rename the error for this particular trap to say "You are in test mode and we detected more than 25k items"
- Make this read from an options object or environment. Only if this does not exist, we fall back to 10k/25k.
Describe alternatives you've considered
Tried to "split" up this large generated .ts file, but was unable to do so.
Documentation, Adoption, Migration Strategy
TBA
💻
What problem are you trying to solve?
I am using graphql-code-generator, which outputs a single .ts file. Problem is my API is very large, and I've just started to hit your hardcoded limit in node_modules/@babel/traverse/lib/context.js
This is causing a confusing "Infinite cycle detected."
I spent a lot of time digging deep into React looking for my infinite loop before I realized to look at the babel source to see the error I am seeing is potentially misleading.
Describe the solution you'd like
My 3 proposals are:
Describe alternatives you've considered
Tried to "split" up this large generated .ts file, but was unable to do so.
Documentation, Adoption, Migration Strategy
TBA