Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.

Open source RSS

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.