{"action":"created","issue":{"url":"https://api.github.com/repos/okta/okta-oidc-js/issues/30","repository_url":"https://api.github.com/repos/okta/okta-oidc-js","labels_url":"https://api.github.com/repos/okta/okta-oidc-js/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/okta/okta-oidc-js/issues/30/comments","events_url":"https://api.github.com/repos/okta/okta-oidc-js/issues/30/events","html_url":"https://github.com/okta/okta-oidc-js/issues/30","id":269000397,"number":30,"title":"Unable to compile okta-react dependencies when using Webpack/Babel with Create-React-App","user":{"login":"tbutman","id":5492356,"avatar_url":"https://avatars3.githubusercontent.com/u/5492356?v=4","gravatar_id":"","url":"https://api.github.com/users/tbutman","html_url":"https://github.com/tbutman","followers_url":"https://api.github.com/users/tbutman/followers","following_url":"https://api.github.com/users/tbutman/following{/other_user}","gists_url":"https://api.github.com/users/tbutman/gists{/gist_id}","starred_url":"https://api.github.com/users/tbutman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbutman/subscriptions","organizations_url":"https://api.github.com/users/tbutman/orgs","repos_url":"https://api.github.com/users/tbutman/repos","events_url":"https://api.github.com/users/tbutman/events{/privacy}","received_events_url":"https://api.github.com/users/tbutman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-10-27T06:24:55Z","updated_at":"2017-11-21T13:46:03Z","closed_at":null,"author_association":"NONE","body":"I'm looking for a way to use okta with my React app which was generated using Create-React-App, however, I'm running into trouble when adding these modules as they use async functions which are an ES2017 feature. By default, Webpack only transpiles my app code into ES5 using the babel loaders and plugins, however, it does not transpile external dependencies due to performance considerations. As a result, I am running into errors when it imports these modules. I believe this will be an issue for anyone using Create-React-App to bootstrap a new project, unless they eject and configure webpack to compile all dependencies as well (which is inadvisable as it drastically slows down webpack compilation times). I was able to correct the issue by transpiling the dependencies manually, but it seems like it would be much easier for consumers if these libraries were hosted in the more widely supported ES5 syntax. This seems like the standard for most other libraries. Do you know if this is a possibility or do you know of any workarounds for Create-React-App users?"},"comment":{"url":"https://api.github.com/repos/okta/okta-oidc-js/issues/comments/346030769","html_url":"https://github.com/okta/okta-oidc-js/issues/30#issuecomment-346030769","issue_url":"https://api.github.com/repos/okta/okta-oidc-js/issues/30","id":346030769,"user":{"login":"terensu-desu","id":18606434,"avatar_url":"https://avatars3.githubusercontent.com/u/18606434?v=4","gravatar_id":"","url":"https://api.github.com/users/terensu-desu","html_url":"https://github.com/terensu-desu","followers_url":"https://api.github.com/users/terensu-desu/followers","following_url":"https://api.github.com/users/terensu-desu/following{/other_user}","gists_url":"https://api.github.com/users/terensu-desu/gists{/gist_id}","starred_url":"https://api.github.com/users/terensu-desu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/terensu-desu/subscriptions","organizations_url":"https://api.github.com/users/terensu-desu/orgs","repos_url":"https://api.github.com/users/terensu-desu/repos","events_url":"https://api.github.com/users/terensu-desu/events{/privacy}","received_events_url":"https://api.github.com/users/terensu-desu/received_events","type":"User","site_admin":false},"created_at":"2017-11-21T13:46:03Z","updated_at":"2017-11-21T13:46:03Z","author_association":"NONE","body":"@tbutman What did you do to transpile the dependencies manually without ejecting the CRA? Right now I'm seeing Auth.js:54 causing the compile error (I assume there's more?). Maybe a fix is on the horizon but I'd like to push on if I can and do whatever you did to get this going."}}
{"actor":{"display_login":"terensu-desu"}}