feat: Call namespace error as a warning #3475
This converts the error when a namespace is called into a warning.
The reason being that there may exist valid runtime paths through the code that do not trigger the error, despite it being invalid. So allowing the build to proceed can allow valid runtime code to work despite the underlying "typing issue".
Alternatively it might be worth considering a strict / loose mode for Rollup "typing errors" so far as it cares about module semantics, but I actually think it would be better to treat Rollup as allowing anything to execute which would execute in a JS engine, since it is not a type system.
Landing as-is seems sensible to me, but I would be open to suggestions too.
This PR contains:
Are tests included?
List any relevant issue numbers:
The text was updated successfully, but these errors were encountered:
@@ Coverage Diff @@ ## master #3475 +/- ## ========================================== + Coverage 95.81% 95.84% +0.03% ========================================== Files 174 174 Lines 5898 5898 Branches 1736 1736 ========================================== + Hits 5651 5653 +2 + Misses 127 126 -1 + Partials 120 119 -1