Static JS compilation with modules worked in 2022 release.
git` bisect run /bin/sh -c "make clean examples/hello_module && ./examples/hello_module"
gives
6e4931c4ad6c1f06cd1e46ecbf98e04cbb8b4ba7 is the first bad commit
commit 6e4931c4ad6c1f06cd1e46ecbf98e04cbb8b4ba7
Author: Fabrice Bellard <fabrice@bellard.org>
Date: Wed Dec 27 17:10:47 2023 +0100
top-level-await support - follow the spec in the implementation of the module linking and evaluation to avoid errors with cycling module dependencies
The cause is -fno-promise in HELLO_MODULE_OPTS in Makefile, it works after removing it. Looks like since the mentioned commit the module loading uses Promise internally, so -fno-promise won't work anymore.
Static JS compilation with modules worked in 2022 release.
gives