-
-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix incorrect scope by the cli script (close #480)
- Loading branch information
Showing
1 changed file
with
4 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7c4cc77
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A single scope for esm.sh has high potential to break things though doesn't it?
ie, if a project has two dependencies that in turn depend on different versions of the same package, then one will get the wrong version.
If not, then what is the point of using
scopes
, why not just add them toimports
?If there is a single scope for esm.sh, then I think you're headed into a dependency resolution minefield where npm, yarn, pnpm spend a lot of there time I think.
(very new to Deno so I quite well might be missing some context here)
7c4cc77
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lecstor i agree with you, the right import maps with version conflict should like:
7c4cc77
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With that example you have me wondering about how Deno deals with peerDependencies as having different versions of React will likely lead to context and hooks issues so then you do only want a single version..
ok, I get the feeling this is not a solved (or recognised) problem in Deno.. denoland/deno#15950