Import ES6 modules

How to force Haxe to bind js modules using an import operator, instead of a function require?

You can use genes, although that might be overdoing it.

Other than that, here’s a more lightweight approach, that might also do the job for you: GitHub - back2dos/jsImport: import ES6 modules into Haxe generated JavaScript

2 Likes

Thank you, master! Your jsImport library is sufficient to solve my problem.