{"action":"created","issue":{"url":"https://api.github.com/repos/alexbol99/flatten-js/issues/5","repository_url":"https://api.github.com/repos/alexbol99/flatten-js","labels_url":"https://api.github.com/repos/alexbol99/flatten-js/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/alexbol99/flatten-js/issues/5/comments","events_url":"https://api.github.com/repos/alexbol99/flatten-js/issues/5/events","html_url":"https://github.com/alexbol99/flatten-js/issues/5","id":333806701,"node_id":"MDU6SXNzdWUzMzM4MDY3MDE=","number":5,"title":"Compile to ES5 before publish to npm","user":{"login":"walmink","id":753479,"node_id":"MDQ6VXNlcjc1MzQ3OQ==","avatar_url":"https://avatars0.githubusercontent.com/u/753479?v=4","gravatar_id":"","url":"https://api.github.com/users/walmink","html_url":"https://github.com/walmink","followers_url":"https://api.github.com/users/walmink/followers","following_url":"https://api.github.com/users/walmink/following{/other_user}","gists_url":"https://api.github.com/users/walmink/gists{/gist_id}","starred_url":"https://api.github.com/users/walmink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/walmink/subscriptions","organizations_url":"https://api.github.com/users/walmink/orgs","repos_url":"https://api.github.com/users/walmink/repos","events_url":"https://api.github.com/users/walmink/events{/privacy}","received_events_url":"https://api.github.com/users/walmink/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-06-19T19:26:38Z","updated_at":"2018-08-17T11:26:26Z","closed_at":"2018-08-17T11:26:26Z","author_association":"COLLABORATOR","body":"React cannot minify this repository during build, because it hasn't been compiled to ES5. [The React team recommends compiling packages to ES5 before publishing to ES5](https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/README.md#npm-run-build-fails-to-minify).\r\n\r\nOf course, you may have your own needs and reasons for not having it compiled to ES5. I just wanted to inform you that compiling it will make this repository more relevant for React developers. The alternative for React developers is forking it or copying it to project code (both not ideal)."},"comment":{"url":"https://api.github.com/repos/alexbol99/flatten-js/issues/comments/413836484","html_url":"https://github.com/alexbol99/flatten-js/issues/5#issuecomment-413836484","issue_url":"https://api.github.com/repos/alexbol99/flatten-js/issues/5","id":413836484,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMzgzNjQ4NA==","user":{"login":"alexbol99","id":6965440,"node_id":"MDQ6VXNlcjY5NjU0NDA=","avatar_url":"https://avatars1.githubusercontent.com/u/6965440?v=4","gravatar_id":"","url":"https://api.github.com/users/alexbol99","html_url":"https://github.com/alexbol99","followers_url":"https://api.github.com/users/alexbol99/followers","following_url":"https://api.github.com/users/alexbol99/following{/other_user}","gists_url":"https://api.github.com/users/alexbol99/gists{/gist_id}","starred_url":"https://api.github.com/users/alexbol99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexbol99/subscriptions","organizations_url":"https://api.github.com/users/alexbol99/orgs","repos_url":"https://api.github.com/users/alexbol99/repos","events_url":"https://api.github.com/users/alexbol99/events{/privacy}","received_events_url":"https://api.github.com/users/alexbol99/received_events","type":"User","site_admin":false},"created_at":"2018-08-17T11:26:26Z","updated_at":"2018-08-17T11:26:26Z","author_association":"OWNER","body":"Since v0.6.2 I will add the package precompiled to es5 (not minified)\r\nIt uses commonjs2 format, so the import of the package have to be like following:\r\n```\r\nimport Flatten from \"flatten-js/dist/flatten.commonjs2\"\r\n```\r\nThen you can build you app in production.\r\nNo need to switch off Uglify plugin anymore.\r\nSee this [demo](https://github.com/alexbol99/flatten-react-demo) project and [here](https://alexbol99.github.io/flatten-react-demo) it is live."}}
{"actor":{"display_login":"alexbol99"}}