Enhancement
An ES6 module can be integrated as follows (the script is then loaded when the application is started)
<config service-class="com.top_logic.gui.JSFileCompiler"> <instance> <additional-files> <file resource="my-module.js" type="module" /> </additional-files> </instance> </config>
If a module is to be loaded dynamically when it is imported by another module, a "specifier" can be defined for the module:
<config service-class="com.top_logic.gui.JSFileCompiler"> <instance> <additional-files> <file resource="service-module.js" type="module" as="service"/> </additional-files> </instance> </config>
The "service-module.js" module can then be imported into another module:
import {...} from 'service';
Test
No test.