gulp-file-include icon indicating copy to clipboard operation
gulp-file-include copied to clipboard

Detect infinite loop when A includes B includes A

Open jonaslewin opened this issue 10 years ago • 2 comments

Works today:

Today you support recursion problems when file A includes file A, and I get the report of

"recursion detected in file:"
What I would like:

File A includes File B File B includes File A.

At that point the same error should be reported. Today I get this error:

Maximum call stack size exceeded

And the same would be valid for File A includes File B File B includes File C File C includes File A

jonaslewin avatar Apr 23 '15 09:04 jonaslewin

https://github.com/coderhaoxin/gulp-file-include/blob/master/test/edge-case.js#L87

It's a bug for now.

haoxins avatar Apr 23 '15 10:04 haoxins

:100:

twt313 avatar Oct 23 '15 06:10 twt313