{"action":"created","issue":{"url":"https://api.github.com/repos/hapijs/qs/issues/139","labels_url":"https://api.github.com/repos/hapijs/qs/issues/139/labels{/name}","comments_url":"https://api.github.com/repos/hapijs/qs/issues/139/comments","events_url":"https://api.github.com/repos/hapijs/qs/issues/139/events","html_url":"https://github.com/hapijs/qs/issues/139","id":117026057,"number":139,"title":"Should export ES5-compatible for npm, otherwise babel transform is required externally","user":{"login":"sompylasar","id":498274,"avatar_url":"https://avatars.githubusercontent.com/u/498274?v=3","gravatar_id":"","url":"https://api.github.com/users/sompylasar","html_url":"https://github.com/sompylasar","followers_url":"https://api.github.com/users/sompylasar/followers","following_url":"https://api.github.com/users/sompylasar/following{/other_user}","gists_url":"https://api.github.com/users/sompylasar/gists{/gist_id}","starred_url":"https://api.github.com/users/sompylasar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sompylasar/subscriptions","organizations_url":"https://api.github.com/users/sompylasar/orgs","repos_url":"https://api.github.com/users/sompylasar/repos","events_url":"https://api.github.com/users/sompylasar/events{/privacy}","received_events_url":"https://api.github.com/users/sompylasar/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hapijs/qs/labels/non-issue","name":"non-issue","color":"c7def8"}],"state":"closed","locked":false,"assignee":{"login":"nlf","id":424045,"avatar_url":"https://avatars.githubusercontent.com/u/424045?v=3","gravatar_id":"","url":"https://api.github.com/users/nlf","html_url":"https://github.com/nlf","followers_url":"https://api.github.com/users/nlf/followers","following_url":"https://api.github.com/users/nlf/following{/other_user}","gists_url":"https://api.github.com/users/nlf/gists{/gist_id}","starred_url":"https://api.github.com/users/nlf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nlf/subscriptions","organizations_url":"https://api.github.com/users/nlf/orgs","repos_url":"https://api.github.com/users/nlf/repos","events_url":"https://api.github.com/users/nlf/events{/privacy}","received_events_url":"https://api.github.com/users/nlf/received_events","type":"User","site_admin":false},"milestone":null,"comments":11,"created_at":"2015-11-15T23:16:02Z","updated_at":"2015-11-19T19:34:01Z","closed_at":"2015-11-19T19:22:38Z","body":"The ES2015-rewritten 6.0.0 has issues when using via webpack. Usually, babel transform is only applied to the app code, and the `node_modules` directory is excluded entirely. This does not work with 6.0.0 compared to ES5-compatible 5.2.0 -- webpack bundles the ES2015 code of the `node_modules/qs` right into the output, which then breaks the uglify step.\r\n\r\nPlease provide ES5-compatible build without browserify and point `package.json`'s `main` to it.\r\n\r\nThis can be done in the `prepublish` step. Look [how it's implemented](https://github.com/rackt/redux-router/blob/master/package.json).\r\n\r\nRelated: #128, #129, #108."},"comment":{"url":"https://api.github.com/repos/hapijs/qs/issues/comments/158170013","html_url":"https://github.com/hapijs/qs/issues/139#issuecomment-158170013","issue_url":"https://api.github.com/repos/hapijs/qs/issues/139","id":158170013,"user":{"login":"sompylasar","id":498274,"avatar_url":"https://avatars.githubusercontent.com/u/498274?v=3","gravatar_id":"","url":"https://api.github.com/users/sompylasar","html_url":"https://github.com/sompylasar","followers_url":"https://api.github.com/users/sompylasar/followers","following_url":"https://api.github.com/users/sompylasar/following{/other_user}","gists_url":"https://api.github.com/users/sompylasar/gists{/gist_id}","starred_url":"https://api.github.com/users/sompylasar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sompylasar/subscriptions","organizations_url":"https://api.github.com/users/sompylasar/orgs","repos_url":"https://api.github.com/users/sompylasar/repos","events_url":"https://api.github.com/users/sompylasar/events{/privacy}","received_events_url":"https://api.github.com/users/sompylasar/received_events","type":"User","site_admin":false},"created_at":"2015-11-19T19:34:01Z","updated_at":"2015-11-19T19:34:01Z","body":"https://github.com/nodejs/help/issues/8\n"}}