Used to import modules. Just like NodeJS's require.
requireModule will load the module synchronously. During the loading, the JavaScript thread will be hang. No JavaScript code will be executed.
The path of the module. Can be a remote path, or a path inside the template.
The exported value of the module.
requireModule will throw an exception when:
The error can be catch and handled by using try-catch.
To avoid JavaScript thread hang forever when loading remote resources, requireModule will throw an exception 5 seconds after the request is sent.
LCD tables only load in the browser