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
Hi! I'm struggling in configuring parcel for my (quite odd) needs.
Is there an option to have per-target aliases somehow?
My situation: I have a browser library that's supposed to be a widget on observablehq. It has 1 dependency on d3, which I alias to global, and it works. But in this case my local html tests fail on serving, because this alias makes parcel serve empty d3.js instead of serving it from node_modules.
Would be happy with any advice or if it's not possible.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I'm struggling in configuring parcel for my (quite odd) needs.
Is there an option to have per-target aliases somehow?
My situation: I have a browser library that's supposed to be a widget on observablehq. It has 1 dependency on d3, which I alias to global, and it works. But in this case my local html tests fail on serving, because this alias makes parcel serve empty d3.js instead of serving it from node_modules.
Would be happy with any advice or if it's not possible.
Beta Was this translation helpful? Give feedback.
All reactions