Skip to content
This repository has been archived by the owner on Aug 7, 2021. It is now read-only.

fix(compiler): reject promise with real error #350

Merged
merged 2 commits into from
Dec 14, 2017

Conversation

rosen-vladimirov
Copy link
Contributor

@rosen-vladimirov rosen-vladimirov commented Dec 13, 2017

When the webpack compiler fails, the error is not used in the rejection, so the promise is always rejected with undefined.
Fix this by respecting the error. Construct real error object as well.

Force rebuild of application when webpack is used …
In case we want to use webpack, force the build by setting nativeChanged property of changesInfo to true.
This is TEMP solution until we have a better one.

Fixes #340

When the webpack compiler fails, the error is not used in the rejection, so the promise is always rejected with `undefined`.
Fix this by respecting the error. Construct real error object as well.
Copy link
Contributor

@Mitko-Kerezov Mitko-Kerezov left a comment

Choose a reason for hiding this comment

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

Looks okay to me

In case we want to use webpack, force the build by setting nativeChanged property of changesInfo to true.
This is TEMP solution until we have a better one.
@vchimev vchimev merged commit 0b9febe into master Dec 14, 2017
@vchimev vchimev deleted the vladimirov/fix-rejection-error branch December 14, 2017 17:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants