Open zlepper opened 7 years ago
The same problem happens with Angular. @bashor, can you give me some advice of where to start looking to deal with this bug?
Hi, @ammachado! Sorry for the delay!
In general:
-Xdiagnostic-level WARNING_WITH_STACKTRACE
Looks like we have to consider few cases for exports:
export as namespace ...
export * from "./three-core"
For the first probably we just should generate right annotations. For more information take a look at references, at least here and here For the second -- I don't know yet how to support it better. (You can just skip it now)
Hi @bashor,
To me, it seems that the problem lies in the second case, as you pointed out in your last comment. I have a failing test case on my fork for that.
Do you have any idea about what we should generate for this case?
I was thinking about "rewriting" the export directive to do something more like a server side include do. That's where I'm stuck at.
I'd find more use cases and trying to write required code manually to get a better understanding.
Specific code it's complaining about is code like this:
export * from "./three-core";
And likely also:
export as namespace THREE;