-
The Is there any way to get this relative path using only public properties and methods? asset.#asset.value.filePath but that of course returns an error as #asset is private |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I figured it out - you can use import { toProjectPath } from "@parcel/core/lib/projectPath";
toProjectPath(options.projectRoot, asset.filePath)); |
Beta Was this translation helpful? Give feedback.
I figured it out - you can use
toProjectPath
from@parcel/core
with theprojectRoot
in the options object passed to the plugin: