Add a require option to the CLI to preload node modules
Add the -r, --require <module>
option to the CLI to preload modules. The option should mimic the behavior of the -r
flag in Node. Specifically, it should follow the require()
function's module resolution rules. The value may be either a path to a file (relative to the current directory), or a node module name. The option can be specified multiple times.
This option gives the user the ability to load additional code into the runtime before Antora begins executing. Common use case for the flag in Antora are to register Asciidoctor extensions globally or modify Asciidoctor compliance settings.
Edited by Dan Allen