{"action":"created","issue":{"url":"https://api.github.com/repos/dfcreative/color-name/issues/5","labels_url":"https://api.github.com/repos/dfcreative/color-name/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/dfcreative/color-name/issues/5/comments","events_url":"https://api.github.com/repos/dfcreative/color-name/issues/5/events","html_url":"https://github.com/dfcreative/color-name/issues/5","id":108205618,"number":5,"title":"Please consider using a plain JS file as the main export","user":{"login":"gaearon","id":810438,"avatar_url":"https://avatars.githubusercontent.com/u/810438?v=3","gravatar_id":"","url":"https://api.github.com/users/gaearon","html_url":"https://github.com/gaearon","followers_url":"https://api.github.com/users/gaearon/followers","following_url":"https://api.github.com/users/gaearon/following{/other_user}","gists_url":"https://api.github.com/users/gaearon/gists{/gist_id}","starred_url":"https://api.github.com/users/gaearon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaearon/subscriptions","organizations_url":"https://api.github.com/users/gaearon/orgs","repos_url":"https://api.github.com/users/gaearon/repos","events_url":"https://api.github.com/users/gaearon/events{/privacy}","received_events_url":"https://api.github.com/users/gaearon/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-24T20:15:24Z","updated_at":"2015-09-24T21:06:19Z","closed_at":"2015-09-24T20:50:17Z","body":"[Webpack does not support `require()`ing JSON with its default configuration.](https://github.com/MoOx/color-string/issues/20#issuecomment-143018346) This is problematic because I can't depend on `color-name` (or any its dependents) because if they use Webpack, they won't be able to consume my library without configuring JSON support.\r\n\r\nPlease consider changing the export to be a plain JS module. I understand this seems to be a Webpack's issue, but Webpack has no intention to fix it, and right now the only outcome is that Webpack consumers, or library authors who care about Webpack consumers, can't use `color-name` or any its dependent."},"comment":{"url":"https://api.github.com/repos/dfcreative/color-name/issues/comments/143051016","html_url":"https://github.com/dfcreative/color-name/issues/5#issuecomment-143051016","issue_url":"https://api.github.com/repos/dfcreative/color-name/issues/5","id":143051016,"user":{"login":"dfcreative","id":300067,"avatar_url":"https://avatars.githubusercontent.com/u/300067?v=3","gravatar_id":"","url":"https://api.github.com/users/dfcreative","html_url":"https://github.com/dfcreative","followers_url":"https://api.github.com/users/dfcreative/followers","following_url":"https://api.github.com/users/dfcreative/following{/other_user}","gists_url":"https://api.github.com/users/dfcreative/gists{/gist_id}","starred_url":"https://api.github.com/users/dfcreative/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dfcreative/subscriptions","organizations_url":"https://api.github.com/users/dfcreative/orgs","repos_url":"https://api.github.com/users/dfcreative/repos","events_url":"https://api.github.com/users/dfcreative/events{/privacy}","received_events_url":"https://api.github.com/users/dfcreative/received_events","type":"User","site_admin":false},"created_at":"2015-09-24T21:06:19Z","updated_at":"2015-09-24T21:06:19Z","body":"@gaearon for browserify, actually, it is possible to point some configuration in per-module package.json, for example:\r\n```json\r\n  ...\r\n  \"browserify\": {\r\n    \"transform\": [\r\n      \"babelify\"\r\n    ]\r\n  },\r\n  ...\r\n```\r\nIn that case consumers of modules shouldn’t care about configuration of their json’s, browserify just bundles all well.\r\nIs there the same directive for webpack? I could’ve just added it to let webpack know that this should be considered as a json?\r\n"}}