-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes errors in the PnP spec #4724
Conversation
Doesn't seem like the spec takes into account paths on Windows, for example if
C:/foo will be treated as a bare identifier.
|
The spec doesn't mention the v2 implementation of "Virtual folders" that used |
* Fixes errors in the PnP spec * Explicitly suggests using `path.resolve` from the manifest location * Adds a mention about path formats * Adds a note about $$virtual
|
||
4. If `relativeUrl` matches `manifest.ignorePatternData`, then | ||
|
||
1. Return **null** | ||
|
||
5. For each `referenceMap` value in `manifest.packageRegistryData` | ||
5. Let `relativeUrlWithDot` be `relativeUrl` prefixed with `./` or `../` as necessary |
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.
FYI relativeUrlWithDot
is never used. I'm assuming it's supposed to be used instead of relativeUrl
below.
* Fixes errors in the PnP spec * Explicitly suggests using `path.resolve` from the manifest location * Adds a mention about path formats * Adds a note about $$virtual
* Fixes errors in the PnP spec * Explicitly suggests using `path.resolve` from the manifest location * Adds a mention about path formats * Adds a note about $$virtual
* Fixes errors in the PnP spec * Explicitly suggests using `path.resolve` from the manifest location * Adds a mention about path formats * Adds a note about $$virtual
* Fixes errors in the PnP spec * Explicitly suggests using `path.resolve` from the manifest location * Adds a mention about path formats * Adds a note about $$virtual
* Fixes errors in the PnP spec * Explicitly suggests using `path.resolve` from the manifest location * Adds a mention about path formats * Adds a note about $$virtual
* Fixes errors in the PnP spec * Explicitly suggests using `path.resolve` from the manifest location * Adds a mention about path formats * Adds a note about $$virtual
* Fixes errors in the PnP spec * Explicitly suggests using `path.resolve` from the manifest location * Adds a mention about path formats * Adds a note about $$virtual
* Fixes errors in the PnP spec * Explicitly suggests using `path.resolve` from the manifest location * Adds a mention about path formats * Adds a note about $$virtual
* Fixes errors in the PnP spec * Explicitly suggests using `path.resolve` from the manifest location * Adds a mention about path formats * Adds a note about $$virtual
What's the problem this PR addresses?
A couple of errors have been raised in evanw/esbuild#1985
Checklist