Closed sionzee closed 5 years ago
Hi @sionzeecz, thanks for reporting this! I added a test case using the example that you provided and there does seem to be an issue specifically when targeting to ES6.
I didn't include any of the babel configuration stuff, so fingers crossed that's not related. I'll get back to you when I pin down the source of the issue.
I just released a patch for this issue. I believe it was caused by the fact that static methods are not enumerable, while non-function static properties are (for some reason 😒).
Anyway, thanks again for reporting the bug! 😄
Hello! I just installed your module to our project and unfortunely we met an issue during implementation.
We have a lot of nested classes what have statics attributes\methods. But these methods are not accessible when the classes are loaded through your Mixin.
I have created a simple example for you.
If I type
TEST2.a
to console. The function is undefined.Maybe it could be related to @babel/plugin-proposal-class-properties with @babel/plugin-transform-typescript. We are not using the babel's syntax plugin but only transform.
Let me know if you need any help. But to me, seems this should be part of ts-mixer and it should work.
Thank you very much.
package.json
babel.config.js