(function () { "use strict";
...
Content.__super__ = React;
...
(function () { "use strict";
var React = require("react"); // <- This line has to be added!
...
Content.__super__ = React;
...
Hi Juraj,
I don't think the latter would work, as __init__ functions are injected after class definitions. The module won't be required yet when the child class is build.
I believe @jsRequire is the way to go.
Best,
Clément
--
To post to this group haxe...@googlegroups.com
http://groups.google.com/group/haxelang?hl=en
---
You received this message because you are subscribed to the Google Groups "Haxe" group.
For more options, visit https://groups.google.com/d/optout.
I'm still on 3.1.3. Will try @:jsRequire when I have time for 3.2...
Thanks for the haxe-js-kit tip, btw!