Skip to content
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

fix: restore backwards compatibility of ConcatenatedModule (fixes #5477) #5480

Merged
merged 3 commits into from
Aug 12, 2017
Merged

fix: restore backwards compatibility of ConcatenatedModule (fixes #5477) #5480

merged 3 commits into from
Aug 12, 2017

Conversation

kisenka
Copy link
Contributor

@kisenka kisenka commented Aug 9, 2017

What kind of change does this PR introduce?
Bugfix

Did you add tests for your changes?
I just return an ability to have access to ConcatenatedModule.modules.

If relevant, link to documentation update:

Summary
Related issue #5477

Does this PR introduce a breaking change?
No

Other information

@jsf-clabot
Copy link

jsf-clabot commented Aug 9, 2017

CLA assistant check
All committers have signed the CLA.

@webpack-bot
Copy link
Contributor

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

@kisenka
Copy link
Contributor Author

kisenka commented Aug 10, 2017

I couldn't find any tests related to ConcatenatedModule, should I create it?

Copy link
Member

@sokra sokra left a comment

Choose a reason for hiding this comment

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

add a test

@@ -220,6 +220,10 @@ class ConcatenatedModule extends Module {
}
}

get modules() {
return this._orderedConcatenationList.map(m => m.module);
Copy link
Member

Choose a reason for hiding this comment

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

This should only include m.type === "concatenated" modules.

@webpack-bot
Copy link
Contributor

@kisenka Thanks for your update.

I labeled the Pull Request so reviewers will review it again.

@sokra Please review the new changes.

Copy link
Member

@sokra sokra left a comment

Choose a reason for hiding this comment

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

Could you add a test in a separate PR?

@webpack-bot
Copy link
Contributor

It looks like this Pull Request doesn't include enough test cases (based on Code Coverage analysis of the PR diff).

A PR need to be covered by tests if you add a new feature (we want to make sure that your feature is working) or if you fix a bug (we want to make sure that we don't run into a regression in future).

@kisenka Please check if this is appliable to your PR and if you can add more test cases.

Read the test readme for details how to write test cases.

@sokra sokra merged commit 287d587 into webpack:master Aug 12, 2017
@kisenka kisenka deleted the concatenated-module-in-3.5-compat branch August 12, 2017 09:45
@kisenka
Copy link
Contributor Author

kisenka commented Aug 12, 2017

Could you add a test in a separate PR?

Yes, but I don't know where to start. @sokra test for ConcatenatedModule should be like NormalModule.test.js?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants