Skip to content

Read 'browser' main field when target is 'electron-renderer' - #6814

Merged
sokra merged 1 commit into
masterfrom
fix/issue-6811
Mar 24, 2018
Merged

sokra merged 1 commit into
masterfrom
fix/issue-6811

Conversation

@ooflorent

@ooflorent ooflorent commented Mar 21, 2018

Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce?

bugfix

Did you add tests for your changes?

yes

If relevant, link to documentation update:

n/a

Summary

Fixes #6811

Does this PR introduce a breaking change?

no

@byzyk

byzyk commented Mar 21, 2018

Copy link
Copy Markdown
Contributor

@ooflorent was going to submit similar PR 😄

I guess the same check has to be added here as well, right?

@sindresorhus

Copy link
Copy Markdown

@ooflorent

Copy link
Copy Markdown
Contributor Author

Thanks for your feedback. I've also added an integration test.

@evenstensberg evenstensberg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, could discard the else and early return instead?

@ooflorent

Copy link
Copy Markdown
Contributor Author

@ev1stensberg Regarding the early return, I think it is less readable. If others want this change, sure, I'll do it!

@evenstensberg

Copy link
Copy Markdown
Member

@ooflorent no big deal, small picks 👍

@sokra sokra closed this Mar 21, 2018
@sokra sokra reopened this Mar 21, 2018
@webpack-bot

Copy link
Copy Markdown
Contributor

Thank you for your pull request! The most important CI builds succeeded, we’ll review the pull request soon.

@sokra
sokra merged commit 7f11210 into master Mar 24, 2018
@sokra

sokra commented Mar 24, 2018

Copy link
Copy Markdown
Member

Thanks

@gaodeng

gaodeng commented Apr 7, 2019

Copy link
Copy Markdown

this PR cause issue
#7953

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.

Target electron-renderer should have browser in resolve.mainFields

7 participants