With https://github.com/vendure-ecommerce/ngx-translate-extract/pull/27 we get the exception RangeError: Maximum call stack size exceeded on some templates. The findPipesInNode => extractPipesFromChildNodes => findPipesInNode recursion on a class fails on depth 18, e.g. this template:
Which apparently can happen if you dabble with some nested diffs, forms, bootstrap boilerplate, angular blocks and some ternary to finish it off.
This PR cleans up the recursion via two traversal methods that don't hold much context, allowing to traverse through nested templates (from before depth 18 to ~700 in this PR).
Thank you so much for maintaining this project!
With https://github.com/vendure-ecommerce/ngx-translate-extract/pull/27 we get the exception
RangeError: Maximum call stack size exceeded
on some templates. ThefindPipesInNode => extractPipesFromChildNodes => findPipesInNode
recursion on a class fails on depth 18, e.g. this template:Which apparently can happen if you dabble with some nested diffs, forms, bootstrap boilerplate, angular blocks and some ternary to finish it off.
This PR cleans up the recursion via two traversal methods that don't hold much context, allowing to traverse through nested templates (from before depth 18 to ~700 in this PR).