Node.js scripting: `--library hxnodejs` not supported
Opened this issue · 0 comments
cedx commented
These prologs work (i.e. the selected compilation target is JavaScript) :
//! -L hxnodejs
//! -lib hxnodejs
But not this one (i.e. the selected compilation target is Eval) :
//! --library hxnodejs
It triggers this kind of errors:
You cannot access the js package while targeting eval (for js.node.Buffer)
The issue can be avoided by adding --define hxnodejs
:
//! --define hxnodejs --library hxnodejs
(lix 15.10.1 with Haxe 4.2.2 on Windows 10)