You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example, change const absPath = Path.resolve(Path.dirname(asset.name), dep.name);
to const absPath = resolvePath(Path.dirname(asset.name), dep.name);
🙋 feature request
Add an option to set "relative" absolute path.
🤔 Expected Behavior
If option
--root-dir
is given toparcel
, absolute path should resolve relative to that path.Example:
parcel src/index.html --root-dir src
😯 Current Behavior
Any absolute path in assets is resolved to filesystem root
/
.💁 Possible Solution
When resolving dependencies, change all
path.resolve
to the following function:For example, change
const absPath = Path.resolve(Path.dirname(asset.name), dep.name);
to
const absPath = resolvePath(Path.dirname(asset.name), dep.name);
🔦 Context
Closes #1352
💻 Examples
The text was updated successfully, but these errors were encountered: