Argument: filename: string: None
relative path to file
You can split your Extension code between several JavaScript files.
The main script remains the one that named after the last component of the identifier.
Other script (dependencies), can be loaded inline the current script using the loadScript()
function
(e.g. loadScript("my-other-script.js")
will load the my-other-script.js
script, provided it is located in the same Extension directory).
Important! This function does not return the imported module, use require()
if you wish to have a return value (similar to Node.js/CommonJS).