Skip to content

resolveFromRoot

Resolves a path against the project root.

Import:

import { resolveFromRoot } from '@mnaoumov/obsidian-dev-toolkit/bundlers/obsidian-plugin-build';

Signature:

function resolveFromRoot(path: string): string

Parameters:

Parameter Type Description
path string The path, relative to the project root or absolute.

Returns: string — The absolute path.