Skip to content

Allow scope hoisting to process modules in multiple chunks#5064

Merged
sokra merged 3 commits intomasterfrom
feature/scope-hoisting-multi-entry
Jun 14, 2017
Merged

Allow scope hoisting to process modules in multiple chunks#5064
sokra merged 3 commits intomasterfrom
feature/scope-hoisting-multi-entry

Conversation

@sokra
Copy link
Copy Markdown
Member

@sokra sokra commented Jun 14, 2017

What kind of change does this PR introduce?
refactoring

Did you add tests for your changes?
yes

If relevant, link to documentation update:
N/A

Summary
Allow scope hoisting to process modules in multiple chunks

Does this PR introduce a breaking change?
no

Other information

@sokra sokra force-pushed the feature/scope-hoisting-multi-entry branch from ecd78c5 to 5d4ba56 Compare June 14, 2017 20:46
@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 1769fa2 into master Jun 14, 2017
@sokra sokra deleted the feature/scope-hoisting-multi-entry branch June 14, 2017 21:43
relevantModules.push(module);
// Module must not be the entry points
if(module.getChunks().some(chunk => chunk.entryModule === module)) {
setBailoutReason(module, "ModuleConcatenation (inner)", "module is an entrypoint");
Copy link
Copy Markdown
Contributor

@jdalton jdalton Jun 22, 2017

Choose a reason for hiding this comment

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

"ModuleConcatenation (inner)", "module is an entrypoint"

What does this mean? Can it be avoided?

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.

3 participants