Skip to content

Conversation

@yusinto
Copy link
Contributor

@yusinto yusinto commented Sep 9, 2016

The VERSION global variable gets injected by webpack for bundled versions of the client library. That is fine, however package.json "main" property is set to "src" which means usage through npm install references src/index.js which is unbundled. This fails with a ReferenceError to VERSION because index.js is unbundled.

I added a check for VERSION so this error can be avoided. If npm users need to find out the version of the client, they can do so via their app's package.json.

@jkodumal
Copy link
Contributor

jkodumal commented Sep 9, 2016

👍 lgtm-- @apucacao ?

@apucacao
Copy link
Contributor

apucacao commented Sep 9, 2016

Thanks @yusinto! I had not thought of that.

@apucacao apucacao merged commit 71181f6 into launchdarkly:master Sep 9, 2016
@yusinto
Copy link
Contributor Author

yusinto commented Sep 10, 2016

No worries! Happy to contribute! Thanks for the hard work guys

apucacao added a commit that referenced this pull request Jan 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants