Open minestarks opened 6 years ago
antd-admin includes a machine-generated JS file. The bulk of the file is single gigantic expression that adds a bunch of strings.
There are two ways to fix this:
@sandersn option2 might not work with incremental parser?
@weswigham suggests:
And, also
grep import
combined with a filter over all nodes that match.I did (4) in the branch fix-overflow-in-collect-dynamic-import, which fixes the original crash.
But a test case now stack overflows in the binder, so I started on (3). This turns out to be a big task, because everywhere we handled BinaryExpression, we now have to handle OperatorListExpression as well. This turns out be quite a few places.
TypeScript Version: 3.1.0-dev.20180925
Compiler crashes with the callstack: