import.meta.url
Resolve Replaces import.meta.url with the CJS equivalent of __filename. For use in gnv
workspaces, which will always bundle to
single outputs, and can therefore resolve import.meta.url
safely to the
filename of the script where it is called.
Source
/** * Change `import.meta.url` to the absolute path of the file where it is * referenced. * * @return */const resolveMetaUrl = name: 'resolveMetaUrl' { if property === 'url' return `'file://'`; };