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
Links to different packages in a monorepo do not resolve unless pointing directly to a file.
At least this is a case of documentation, though I suspect it is a bug.
With a file b/src/index.pug, none of the following are resolved: a/src/index.pug:
a(href="/b/")
a(href="b/")
a(href="../../b")
But this works just fine: a/index.pug:
a(href="/b/src/index.pug")
I can also run, but shouldn't need to:
parcel a b otherpackages
🤔 Expected Behavior
When the source is defined in package.json, Parcel should be able to resolve links to packages and build its contents as part of the build.
🔦 Context
Hard coding path to file is bad, as it breaks the decoupling between the packages. Changing the source in a package b will cause a build to break unless I now modify package a as well.
💻 Code Sample
🌍 Your Environment
Irrelevant in this instance!
Software
Version(s)
Parcel
2.7.0
Node
18.8.0
npm/Yarn
8.13.2
Operating System
Windows 10 x64
The text was updated successfully, but these errors were encountered:
🐛 bug report
Links to different packages in a monorepo do not resolve unless pointing directly to a file.
At least this is a case of documentation, though I suspect it is a bug.
🎛 Configuration (.babelrc, package.json, cli command)
Consider two packages 'a' and 'b':
a/package.json
:b/package.json
:😯 Current Behavior
Run:
With a file
b/src/index.pug
, none of the following are resolved:a/src/index.pug
:But this works just fine:
a/index.pug
:I can also run, but shouldn't need to:
🤔 Expected Behavior
When the
source
is defined inpackage.json
, Parcel should be able to resolve links to packages and build its contents as part of the build.🔦 Context
Hard coding path to file is bad, as it breaks the decoupling between the packages. Changing the source in a package
b
will cause a build to break unless I now modify packagea
as well.💻 Code Sample
🌍 Your Environment
Irrelevant in this instance!
The text was updated successfully, but these errors were encountered: