Closed xc2 closed 1 week ago
We cannot do this at this time because:
a
’s dependency c
might require a different version of package b
than what a
does.Therefore, we need to manage externals using "resource path" instead of "request", but unfortunately, ncc does not support this.
Close as it’s hard to do it correctly with ncc
For example,
If there're two deps defined in
prebundle.config.mjs
: packagea
and packageb
.If resolving"b"
in packagea
results in the same position of packageb
, we could add{ b: '../b/index.js' }
intoa
'sexternals
.If resolving"a"
in packageb
results in the same position of packagea
, we could add{ a: '../a/index.js' }
intob
'sexternals
.Todo