Skip to content
This repository has been archived by the owner on Jul 10, 2019. It is now read-only.

fix: consuming using jsnext:main fails #44

Merged
merged 1 commit into from
Jul 11, 2017
Merged

Conversation

atlanteh
Copy link
Contributor

@atlanteh atlanteh commented Jul 3, 2016

The export command is executed before the definition of the variables so when consuming the src module using jsnext:main in webpack + babel, our build fails due to undefined defineProperty. Moving the export to the bottom of the file solves the issue.

The export command is executed before the definition of  the variables so when consuming the src module using jsnext:main in webpack + babel, our build fails due to undefined defineProperty. Moving the export to the bottom of the file solves the issue.
@yahoocla
Copy link

yahoocla commented Jul 3, 2016

CLA is valid!

@jasonmit
Copy link
Contributor

jasonmit commented Jul 10, 2017

@okuryu and this is ready as well (verified this is also a problem). Ran up against this with babel 5, perhaps babel 6 doesn't have the same issue.

Copy link
Member

@okuryu okuryu left a comment

Choose a reason for hiding this comment

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

👍

@okuryu okuryu merged commit 7288de4 into formatjs:master Jul 11, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants