{"action":"created","issue":{"url":"https://api.github.com/repos/substack/node-browserify/issues/1264","labels_url":"https://api.github.com/repos/substack/node-browserify/issues/1264/labels{/name}","comments_url":"https://api.github.com/repos/substack/node-browserify/issues/1264/comments","events_url":"https://api.github.com/repos/substack/node-browserify/issues/1264/events","html_url":"https://github.com/substack/node-browserify/issues/1264","id":76390605,"number":1264,"title":"Source maps broken in 10.2.0","user":{"login":"playpauseandstop","id":21325,"avatar_url":"https://avatars.githubusercontent.com/u/21325?v=3","gravatar_id":"","url":"https://api.github.com/users/playpauseandstop","html_url":"https://github.com/playpauseandstop","followers_url":"https://api.github.com/users/playpauseandstop/followers","following_url":"https://api.github.com/users/playpauseandstop/following{/other_user}","gists_url":"https://api.github.com/users/playpauseandstop/gists{/gist_id}","starred_url":"https://api.github.com/users/playpauseandstop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/playpauseandstop/subscriptions","organizations_url":"https://api.github.com/users/playpauseandstop/orgs","repos_url":"https://api.github.com/users/playpauseandstop/repos","events_url":"https://api.github.com/users/playpauseandstop/events{/privacy}","received_events_url":"https://api.github.com/users/playpauseandstop/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-05-14T15:16:03Z","updated_at":"2015-05-14T21:33:54Z","closed_at":null,"body":"Looks like update browser-pack to ^5.0.0 broke source maps management by [exorcist](https://github.com/thlorenz/exorcist).\r\n\r\n**file.js**:\r\n\r\n```\r\nconsole.log(\"It works!\");\r\n```\r\n\r\n```\r\n$ npm list browserify exorcist\r\n├── browserify@10.1.3 \r\n├── exorcist@0.3.0\r\n$ `npm bin`/browserify --debug file.js | `npm bin`/exorcist bundle.js > bundle.map\r\n$ echo $?\r\n0\r\n```\r\n\r\nBut after upgrade browserify to 10.2.0 exorcist doesn't understand source map generated by browserify,\r\n\r\n```\r\n$ `npm bin`/browserify --debug file.js | `npm bin`/exorcist bundle.js > bundle.map\r\nThe code that you piped into exorcist contains no source map!\r\nTherefore it was piped through as is and no external map file generated.\r\n```\r\n\r\nSource file bundled as,\r\n\r\n```\r\n(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require==\"function\"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error(\"Cannot find module '\"+o+\"'\");throw f.code=\"MODULE_NOT_FOUND\",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require==\"function\"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){\r\nconsole.log(\"It works!\");\r\n\r\n},{}]},{},[1])\r\n//# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9icm93c2VyaWZ5L25vZGVfbW9kdWxlcy9icm93c2VyLXBhY2svX3ByZWx1ZGUuanMiLCJmaWxlLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FDQUE7QUFDQSIsImZpbGUiOiJnZW5lcmF0ZWQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlc0NvbnRlbnQiOlsiKGZ1bmN0aW9uIGUodCxuLHIpe2Z1bmN0aW9uIHMobyx1KXtpZighbltvXSl7aWYoIXRbb10pe3ZhciBhPXR5cGVvZiByZXF1aXJlPT1cImZ1bmN0aW9uXCImJnJlcXVpcmU7aWYoIXUmJmEpcmV0dXJuIGEobywhMCk7aWYoaSlyZXR1cm4gaShvLCEwKTt2YXIgZj1uZXcgRXJyb3IoXCJDYW5ub3QgZmluZCBtb2R1bGUgJ1wiK28rXCInXCIpO3Rocm93IGYuY29kZT1cIk1PRFVMRV9OT1RfRk9VTkRcIixmfXZhciBsPW5bb109e2V4cG9ydHM6e319O3Rbb11bMF0uY2FsbChsLmV4cG9ydHMsZnVuY3Rpb24oZSl7dmFyIG49dFtvXVsxXVtlXTtyZXR1cm4gcyhuP246ZSl9LGwsbC5leHBvcnRzLGUsdCxuLHIpfXJldHVybiBuW29dLmV4cG9ydHN9dmFyIGk9dHlwZW9mIHJlcXVpcmU9PVwiZnVuY3Rpb25cIiYmcmVxdWlyZTtmb3IodmFyIG89MDtvPHIubGVuZ3RoO28rKylzKHJbb10pO3JldHVybiBzfSkiLCJjb25zb2xlLmxvZyhcIkl0IHdvcmtzIVwiKTtcbiJdfQ==\r\n```\r\n\r\nSo ``//# sourceMappingURL...`` contains in bundle, but couldn't be recognized by exorcist."},"comment":{"url":"https://api.github.com/repos/substack/node-browserify/issues/comments/102176926","html_url":"https://github.com/substack/node-browserify/issues/1264#issuecomment-102176926","issue_url":"https://api.github.com/repos/substack/node-browserify/issues/1264","id":102176926,"user":{"login":"thlorenz","id":192891,"avatar_url":"https://avatars.githubusercontent.com/u/192891?v=3","gravatar_id":"","url":"https://api.github.com/users/thlorenz","html_url":"https://github.com/thlorenz","followers_url":"https://api.github.com/users/thlorenz/followers","following_url":"https://api.github.com/users/thlorenz/following{/other_user}","gists_url":"https://api.github.com/users/thlorenz/gists{/gist_id}","starred_url":"https://api.github.com/users/thlorenz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thlorenz/subscriptions","organizations_url":"https://api.github.com/users/thlorenz/orgs","repos_url":"https://api.github.com/users/thlorenz/repos","events_url":"https://api.github.com/users/thlorenz/events{/privacy}","received_events_url":"https://api.github.com/users/thlorenz/received_events","type":"User","site_admin":false},"created_at":"2015-05-14T21:33:54Z","updated_at":"2015-05-14T21:33:54Z","body":"I merged the commit and updated exorcist as well."}}