Returns an absolute file URL, readable by the ESM loader.
The base URL of the module.
The path to the target file.
The absolute file URL.
// file:///absolute/path/to/src/index.jsgetAbsoluteFileURL(import.meta.url, ['src', 'index.js']) Copy
// file:///absolute/path/to/src/index.jsgetAbsoluteFileURL(import.meta.url, ['src', 'index.js'])
Returns an absolute file URL, readable by the ESM loader.