Starting with Qt 6.0, it should be possible to make QJSEngine/v4 (their custom JIT JavaScript engine) optional in your application:
>Make JavaScript an optional feature of QML.
>Having a full JavaScript engine when using QML can complicate things and is an overhead especially when targeting low-end hardware such as microcontrollers. It is however extremely useful in many use cases.
Source: https://www.qt.io/blog/2019/08/07/technical-vision-qt-6