Skip to content

Revert "Wrap default entry property in array" - #6465

Merged
sokra merged 1 commit into
nextfrom
revert-6394-TheLarkInn-patch-1
Feb 9, 2018
Merged

sokra merged 1 commit into
nextfrom
revert-6394-TheLarkInn-patch-1

Conversation

@sokra

@sokra sokra commented Feb 9, 2018

Copy link
Copy Markdown
Member

Reverts #6394

@sokra

sokra commented Feb 9, 2018

Copy link
Copy Markdown
Member Author

@TheLarkInn This is a breaking change and would also result in larger bundles, because an array adds an extra module to the bundle.

@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.

@TheLarkInn
TheLarkInn self-requested a review February 9, 2018 16:26

@TheLarkInn TheLarkInn 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.

Would it be a breaking change, or make sense if we just did this for mode: development. The whole reasoning was that tools that want to plug into entry and append hot loading, etc. can do so just via a plugin without forcing a change in the entry format because they can just .push() to it. If this isn't a big deal, then I'm okay with this.

@sokra

sokra commented Feb 9, 2018

Copy link
Copy Markdown
Member Author

I guess we can find an alternative solution for this.. I. e. a waterfall hook to modify the entry values

@sokra
sokra merged commit 45b11b5 into next Feb 9, 2018
@sokra
sokra deleted the revert-6394-TheLarkInn-patch-1 branch February 9, 2018 16:38
@TheLarkInn

TheLarkInn commented Feb 9, 2018 via email

Copy link
Copy Markdown
Member

@shellscape

Copy link
Copy Markdown
Contributor

A waterfall hook would be awesome. If it would be possible to update the 3.x branch with that as well, that'd be awesome.

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.

4 participants