Support Import map placeholders for monorepo modules #20199
dogukanakkaya
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For monorepo modules like aws-sdk, especially the ones that keeps the same versions for all monorepos regarding it's changed or not. We have to keep defining every submodule we will use in import map.
Example from aws-sdk. We have all different clients under
@aws-sdk
. To add specific versions of those in import map I have to explicitly add all of these with same versions again and again.Instead we can define this once with a placeholder for
client-ses
,client-sqs
etc. Like:And then this can be used in the app like:
Also Babel is the same but I guess submodules inside that may have different versions. Anyways, aws-sdk is a good case for this. But I am not sure if this is very relevant at the moment or would have any different use cases.
Beta Was this translation helpful? Give feedback.
All reactions