Skip to content

fix: Changing module resolve priority #1622

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

Merged
merged 5 commits into from
Nov 30, 2021

Conversation

rschristian
Copy link
Member

@rschristian rschristian commented Nov 24, 2021

What kind of change does this PR introduce?

bugfix

Did you add tests for your changes?

Maybe covered by existing

Summary

Fixes #1616

This seems to be the correct way to fix the issue, however, it breaks the preact8 progressive hydration test as it resolves Preact through Preact-CLI's devDep on Preact v10, rather than the local (to the test) v8. #756 seems to have set this up (the behavior I'm reverting) specifically for that situation.

I've hackily reversed this change in that test using the preact.config.js. It's quite silly but I think it's valid, as this is a situation that would only come up when preact v10 is available in a preact v8 app.

This needs to wait for #1623, as the update config file will not be used until that's in

@changeset-bot
Copy link

changeset-bot bot commented Nov 24, 2021

🦋 Changeset detected

Latest commit: aa51866

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
preact-cli Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@rschristian rschristian force-pushed the fix/duplicated-dependency-import branch from 72db315 to 9010e2a Compare November 27, 2021 00:53
@rschristian rschristian marked this pull request as ready for review November 27, 2021 01:23
@rschristian rschristian requested a review from a team as a code owner November 27, 2021 01:23
@ForsakenHarmony ForsakenHarmony merged commit 39be928 into master Nov 30, 2021
@ForsakenHarmony ForsakenHarmony deleted the fix/duplicated-dependency-import branch November 30, 2021 17:10
@preact-bot preact-bot mentioned this pull request Nov 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

wrong version of dependency imported with duplicate dependencies using preact-cli
2 participants