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

Use Promise only when chunk load is triggered #4923

Merged
merged 1 commit into from
May 24, 2017
Merged

Conversation

sokra
Copy link
Member

@sokra sokra commented May 24, 2017

What kind of change does this PR introduce?
bugfix

Did you add tests for your changes?
no

If relevant, link to documentation update:
n/a

Summary
Use Promise only when chunk load is triggered
don't use it in initialisation
fixes #4916

Does this PR introduce a breaking change?
no

Other information

don't use it in initialisation
fixes #4916
@webpack-bot
Copy link
Contributor

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

@sokra sokra merged commit 0dd0830 into master May 24, 2017
@sokra sokra deleted the bugfix/promise-later branch May 24, 2017 13:14
this.indent([
"return resolvedPromise;"
"return new Promise(function(resolve) { resolve(); });"
Copy link
Member

Choose a reason for hiding this comment

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

can't this just be Promise.resolve() ?

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.

webpack 2.6.0 can't find variable: Promise on require async
3 participants