VersionResolver
Version resolver to determine the version of the bundle to be used in remote or builtin.
Version resolver to determine the version of the bundle to be used in remote or builtin.
From "package.json", will use the "version" field from "package.json", if not specified, will be throw error.
From "git", will use the "HEAD" commit hash.
Or, specify a custom version string or a function that returns a version string.
Type
type VersionResolver =
| { from: 'package.json' }
| { from: 'git' }
| string
| ((params: BundleInfoResolverParams) => string | Promise<string>);