{"action":"closed","issue":{"url":"https://api.github.com/repos/jspm/jspm-cli/issues/1159","labels_url":"https://api.github.com/repos/jspm/jspm-cli/issues/1159/labels{/name}","comments_url":"https://api.github.com/repos/jspm/jspm-cli/issues/1159/comments","events_url":"https://api.github.com/repos/jspm/jspm-cli/issues/1159/events","html_url":"https://github.com/jspm/jspm-cli/issues/1159","id":108171106,"number":1159,"title":"bundle-sfx arithmetics/--globals broken since some patch version","user":{"login":"neothemachine","id":530988,"avatar_url":"https://avatars.githubusercontent.com/u/530988?v=3","gravatar_id":"","url":"https://api.github.com/users/neothemachine","html_url":"https://github.com/neothemachine","followers_url":"https://api.github.com/users/neothemachine/followers","following_url":"https://api.github.com/users/neothemachine/following{/other_user}","gists_url":"https://api.github.com/users/neothemachine/gists{/gist_id}","starred_url":"https://api.github.com/users/neothemachine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neothemachine/subscriptions","organizations_url":"https://api.github.com/users/neothemachine/orgs","repos_url":"https://api.github.com/users/neothemachine/repos","events_url":"https://api.github.com/users/neothemachine/events{/privacy}","received_events_url":"https://api.github.com/users/neothemachine/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jspm/jspm-cli/labels/fixed%20pending%20release","name":"fixed pending release","color":"009800"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-24T16:58:01Z","updated_at":"2015-10-08T16:17:04Z","closed_at":"2015-10-08T16:17:04Z","body":"I used the following successfully previously:\r\n```\r\njspm bundle-sfx leaflet-coverage/classic - leaflet leaflet-coverage.src.js --globals \"{leaflet:'L'}\" --format global --skip-source-maps\r\n```\r\nI'm not sure which jspm version that was, something between 0.16.2 and 0.16.9. I'm now at 0.16.10 and noticed it doesn't work anymore. When I try to use the bundle I get the following:\r\n```\r\nUncaught Module 81 not present.\r\nload @ leaflet-coverage.src.js:365\r\nlinkDeclarativeModule @ leaflet-coverage.src.js:200\r\nlinkDeclarativeModule @ leaflet-coverage.src.js:204\r\nlink @ leaflet-coverage.src.js:127\r\nload @ leaflet-coverage.src.js:369\r\n(anonymous function) @ leaflet-coverage.src.js:425\r\n(anonymous function) @ leaflet-coverage.src.js:8619\r\nloader @ leaflet-coverage.src.js:387\r\n(anonymous function) @ leaflet-coverage.src.js:8618\r\n```\r\n\r\nWhen I look into the generated source, I see `\"github:Leaflet/Leaflet@0.7.3\"` at some point, and not `\"leaflet\"` as I aliased it and how I import it. I think this is the problem.\r\n\r\nYou can check it for yourself by cloning https://github.com/Reading-eScience-Centre/leaflet-coverage and then doing `npm install` and putting the generated `leaflet-coverage.src.js` into a folder with an `index.html` which has:\r\n```html\r\n<!DOCTYPE html>\r\n<html>\r\n<body>\r\n<script src=\"http://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.js\"></script>\r\n<script src=\"leaflet-coverage.src.js\"></script>\r\n<script>\r\n    console.log(L);\r\n    console.log(L.coverage);\r\n</script> \r\n</body>\r\n</html>\r\n```"}}