COMMUNITY

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: https://github.com/back2dos/jsImport/tree/master#jsimport---use-es6-imports-in-haxe

2 Likes

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