-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(hot-esm): add support for Yarn 2
Adds support for Yarn 2: - Add /.yarn/ as ignored pattern. - Remove the version search param from context.parentURL in resolving and from url in loading. Other small improvements: - Clear logic in isPathIgnored. - Check that url protocol is file:, instead of checking if it is not node: or nodejs:, since only file: is supported. - Use searchParams.set to add the search param, so that if a resulted url contains search params there is no conflict. - Rename the search param from generic version to package specific hot-esm, again to avoid potential conflicts. - Rename defaultResolve to nextResolve and defaultLoad to nextLoad, do not pass third argument to them as their signature does not really allow it.
- Loading branch information
Showing
1 changed file
with
35 additions
and
33 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