resolve
Import from @varavel/vdl-plugin-sdk/utils/paths.
Resolves one or more path segments into a normalized absolute or rooted path.
This is useful when plugin code needs stable path resolution without relying on platform-specific separators.
Parameters
| Parameter | Type | Description |
|---|---|---|
...parts |
string[] |
Path segments to resolve. |
Returns
string
The resolved normalized path.
Example
resolve("/workspace/plugin", "src", "../dist/index.js");
// returns "/workspace/plugin/dist/index.js"
See
Powered by pathe (MIT License): https://github.com/unjs/pathe