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
source – If the module is behind a symlink (e.g. in a monorepo, or via npm link), then Parcel uses the source field to compile the module from source.
Is it ever possible to opt out of this rule?
I think more logical would be at least building from the source only if project is not built, ie 'main' or 'module' is missing.
Given all package managers (npm, pnpm, yarn) support building all or selected workspaces in the monorepo recursively, in the order they depend on each other, the rule I mentioned above seems provides more flexibility.
One reason I'm asking this is postcss/tailwind. With the original parcel dependency resolution rule it's not currently possible to have different configurations for different monorepo packages depending on each other. In my case, I want to build a web component with one configuration and demo site with another configuration.
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
-
Is it ever possible to opt out of this rule?
I think more logical would be at least building from the source only if project is not built, ie 'main' or 'module' is missing.
Given all package managers (npm, pnpm, yarn) support building all or selected workspaces in the monorepo recursively, in the order they depend on each other, the rule I mentioned above seems provides more flexibility.
One reason I'm asking this is postcss/tailwind. With the original parcel dependency resolution rule it's not currently possible to have different configurations for different monorepo packages depending on each other. In my case, I want to build a web component with one configuration and demo site with another configuration.
Beta Was this translation helpful? Give feedback.
All reactions