{"action":"created","issue":{"url":"https://api.github.com/repos/babel/babel/issues/2255","labels_url":"https://api.github.com/repos/babel/babel/issues/2255/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel/issues/2255/comments","events_url":"https://api.github.com/repos/babel/babel/issues/2255/events","html_url":"https://github.com/babel/babel/issues/2255","id":102792732,"number":2255,"title":"babel build-dist.sh failing on browser.js in Linux environment ","user":{"login":"sethcall","id":21948,"avatar_url":"https://avatars.githubusercontent.com/u/21948?v=3","gravatar_id":"","url":"https://api.github.com/users/sethcall","html_url":"https://github.com/sethcall","followers_url":"https://api.github.com/users/sethcall/followers","following_url":"https://api.github.com/users/sethcall/following{/other_user}","gists_url":"https://api.github.com/users/sethcall/gists{/gist_id}","starred_url":"https://api.github.com/users/sethcall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sethcall/subscriptions","organizations_url":"https://api.github.com/users/sethcall/orgs","repos_url":"https://api.github.com/users/sethcall/repos","events_url":"https://api.github.com/users/sethcall/events{/privacy}","received_events_url":"https://api.github.com/users/sethcall/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/babel/babel/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/babel/babel/labels/confirmed","name":"confirmed","color":"207de5"},{"url":"https://api.github.com/repos/babel/babel/labels/good%20first%20bug","name":"good first bug","color":"fad8c7"},{"url":"https://api.github.com/repos/babel/babel/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-24T13:25:36Z","updated_at":"2015-08-24T18:52:47Z","closed_at":null,"body":"On Linux, babel/packages/babel/scripts/build-dist.sh fails when running uglifyjs on browser.js.  \r\n\r\nThis change introduced this problem:\r\n\r\nhttps://github.com/babel/babel/commit/beaff831d2c4b6c499581c6587e73999a5c18494#diff-729e8ddea0774d4b82a61a79615d6a9e\r\n\r\nI believe this error got through because build-dist.sh still works on MacOSX. It's in a Linux environment where this fails.\r\n\r\nIf curious, I was made aware of this as a user of ruby-babel-transpiler, which uses build-dist.sh in it's travis scripts.  (you can see the build error here: https://travis-ci.org/babel/ruby-babel-transpiler/jobs/74334612#L1055)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/babel/babel/issues/comments/134337139","html_url":"https://github.com/babel/babel/issues/2255#issuecomment-134337139","issue_url":"https://api.github.com/repos/babel/babel/issues/2255","id":134337139,"user":{"login":"jmm","id":129203,"avatar_url":"https://avatars.githubusercontent.com/u/129203?v=3","gravatar_id":"","url":"https://api.github.com/users/jmm","html_url":"https://github.com/jmm","followers_url":"https://api.github.com/users/jmm/followers","following_url":"https://api.github.com/users/jmm/following{/other_user}","gists_url":"https://api.github.com/users/jmm/gists{/gist_id}","starred_url":"https://api.github.com/users/jmm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmm/subscriptions","organizations_url":"https://api.github.com/users/jmm/orgs","repos_url":"https://api.github.com/users/jmm/repos","events_url":"https://api.github.com/users/jmm/events{/privacy}","received_events_url":"https://api.github.com/users/jmm/received_events","type":"User","site_admin":false},"created_at":"2015-08-24T18:52:47Z","updated_at":"2015-08-24T18:52:47Z","body":"@sethcall Thanks for the link; that seems to focus on the `\\u` escapes though, so I think it's slightly different from this issue.\r\n\r\n> I'm thinking then that this is a sh vs bash vs dash issue.\r\n\r\nYeah, agreed.\r\n\r\n> If I had to vote, I like the *env printf*\r\n\r\nI just wish I had a better sense of how portable that is. I just had a thought, maybe the best bet here is just a node one-liner:\r\n\r\n```sh\r\nnode -e 'process.stdout.write(\"\\uFEFF\")' > dist/browser.js\r\n```\r\n\r\nI think that should be totally portable (on *nix)...what do you think?"}}