Hey there list,
I'm using a custom js generator to generate an Ember-CLI-compatible code from Haxe. This includes some hacks to generate that maps to the Ember way of defining new objects (Ember.extend) and including ES6 imports and exports. It's still very much a POC, but I might be sharing it soon if all works well.
That being said, I'd like to use this generator *only* for certain classes. Other classes might not use Ember features at all and will use the ES5 output from Haxe.
My original idea was to mark the class with a metadata like ":emberObject" and then in the generator check for that. I could indeed access the metadata for the class, but couldn't find a way to fallback to the default js generator.
Is that even possible? I don't see a way of delegating the generation of js to the compiler once `Compiler.setCustomJSGenerator` has been called to use the custom js generator.
Any insights welcome!
- Marcelo.