{"action":"created","issue":{"url":"https://api.github.com/repos/systemjs/systemjs/issues/1792","repository_url":"https://api.github.com/repos/systemjs/systemjs","labels_url":"https://api.github.com/repos/systemjs/systemjs/issues/1792/labels{/name}","comments_url":"https://api.github.com/repos/systemjs/systemjs/issues/1792/comments","events_url":"https://api.github.com/repos/systemjs/systemjs/issues/1792/events","html_url":"https://github.com/systemjs/systemjs/issues/1792","id":293064521,"number":1792,"title":"SystemJS builds for Node instead of browser","user":{"login":"pieterbeulque","id":144075,"avatar_url":"https://avatars3.githubusercontent.com/u/144075?v=4","gravatar_id":"","url":"https://api.github.com/users/pieterbeulque","html_url":"https://github.com/pieterbeulque","followers_url":"https://api.github.com/users/pieterbeulque/followers","following_url":"https://api.github.com/users/pieterbeulque/following{/other_user}","gists_url":"https://api.github.com/users/pieterbeulque/gists{/gist_id}","starred_url":"https://api.github.com/users/pieterbeulque/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pieterbeulque/subscriptions","organizations_url":"https://api.github.com/users/pieterbeulque/orgs","repos_url":"https://api.github.com/users/pieterbeulque/repos","events_url":"https://api.github.com/users/pieterbeulque/events{/privacy}","received_events_url":"https://api.github.com/users/pieterbeulque/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-01-31T08:02:50Z","updated_at":"2018-03-12T12:44:08Z","closed_at":null,"author_association":"NONE","body":"Hi\r\n\r\n[Here's a ticket for context](https://github.com/visionmedia/superagent/issues/1331)\r\n\r\nSuperagent is an NPM package that has this in its `package.json`:\r\n\r\n```.json\r\n{\r\n  \"browser\": {\r\n    \"./lib/node/index.js\": \"./lib/client.js\",\r\n    \"./test/support/server.js\": \"./test/support/blank.js\"\r\n  },\r\n  \"main\": \"./lib/node/index.js\"\r\n}\r\n```\r\n\r\nIn my `jspm_packages` folder it creates a `superagent@3.8.2.js` file that holds this:\r\n\r\n```js\r\nmodule.exports = require(\"npm:superagent@3.8.2/lib/node/index.js\");\r\n```\r\n\r\nI believe this should honor the `browser` field from `package.json` and become:\r\n\r\n```js\r\nmodule.exports = require(\"npm:superagent@3.8.2/lib/client.js\");\r\n```\r\n\r\nIs this an issue with JSPM / SystemJS or have I configured/installed something incorrectly?\r\n\r\nJSPM version: JSPM 0.16.53\r\n\r\nThank you ✌️ "},"comment":{"url":"https://api.github.com/repos/systemjs/systemjs/issues/comments/372296921","html_url":"https://github.com/systemjs/systemjs/issues/1792#issuecomment-372296921","issue_url":"https://api.github.com/repos/systemjs/systemjs/issues/1792","id":372296921,"user":{"login":"guybedford","id":598730,"avatar_url":"https://avatars1.githubusercontent.com/u/598730?v=4","gravatar_id":"","url":"https://api.github.com/users/guybedford","html_url":"https://github.com/guybedford","followers_url":"https://api.github.com/users/guybedford/followers","following_url":"https://api.github.com/users/guybedford/following{/other_user}","gists_url":"https://api.github.com/users/guybedford/gists{/gist_id}","starred_url":"https://api.github.com/users/guybedford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guybedford/subscriptions","organizations_url":"https://api.github.com/users/guybedford/orgs","repos_url":"https://api.github.com/users/guybedford/repos","events_url":"https://api.github.com/users/guybedford/events{/privacy}","received_events_url":"https://api.github.com/users/guybedford/received_events","type":"User","site_admin":false},"created_at":"2018-03-12T12:44:08Z","updated_at":"2018-03-12T12:44:08Z","author_association":"OWNER","body":"What happens if you install and null out the main mapping with:\r\n\r\n```\r\njspm install superagent -o \"{ main: null }\"\r\n```\r\n\r\nAlternatively, try setting the main directly to the desired value similarly."}}
{"actor":{"display_login":"guybedford"}}