This is documentation for the next version of Grafana k6 documentation. For the latest stable release, go to the latest version.

Open source

import.meta

The import.meta object provides the resolve function, which resolves a path to a URL string in the same way an import statement does.

The import.meta object is only available in ECMAScript modules, not in CommonJS modules.

FunctionDescription
import.meta.resolveResolves a path to a URL string the same way an import statement does.