{"action":"created","issue":{"url":"https://api.github.com/repos/ivogabe/gulp-typescript/issues/52","labels_url":"https://api.github.com/repos/ivogabe/gulp-typescript/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/ivogabe/gulp-typescript/issues/52/comments","events_url":"https://api.github.com/repos/ivogabe/gulp-typescript/issues/52/events","html_url":"https://github.com/ivogabe/gulp-typescript/issues/52","id":54570266,"number":52,"title":"absolute paths in sourcemap","user":{"login":"baabgai","id":9270895,"avatar_url":"https://avatars.githubusercontent.com/u/9270895?v=3","gravatar_id":"","url":"https://api.github.com/users/baabgai","html_url":"https://github.com/baabgai","followers_url":"https://api.github.com/users/baabgai/followers","following_url":"https://api.github.com/users/baabgai/following{/other_user}","gists_url":"https://api.github.com/users/baabgai/gists{/gist_id}","starred_url":"https://api.github.com/users/baabgai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baabgai/subscriptions","organizations_url":"https://api.github.com/users/baabgai/orgs","repos_url":"https://api.github.com/users/baabgai/repos","events_url":"https://api.github.com/users/baabgai/events{/privacy}","received_events_url":"https://api.github.com/users/baabgai/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-16T12:25:28Z","updated_at":"2015-01-26T18:09:12Z","closed_at":null,"body":"In the sourcemap files written together with gulp-sourcemaps the TypeScript files end up with absolute paths instead of relativ paths in the sources tag. This leads to errors when Firefox tries to read sourcemap files and to cumbersome long paths in Chrome.\r\nWhen using gulp-sourcemaps on javascript files the expected relative paths are set."},"comment":{"url":"https://api.github.com/repos/ivogabe/gulp-typescript/issues/comments/71507531","html_url":"https://github.com/ivogabe/gulp-typescript/issues/52#issuecomment-71507531","issue_url":"https://api.github.com/repos/ivogabe/gulp-typescript/issues/52","id":71507531,"user":{"login":"jon-hall","id":5952048,"avatar_url":"https://avatars.githubusercontent.com/u/5952048?v=3","gravatar_id":"","url":"https://api.github.com/users/jon-hall","html_url":"https://github.com/jon-hall","followers_url":"https://api.github.com/users/jon-hall/followers","following_url":"https://api.github.com/users/jon-hall/following{/other_user}","gists_url":"https://api.github.com/users/jon-hall/gists{/gist_id}","starred_url":"https://api.github.com/users/jon-hall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jon-hall/subscriptions","organizations_url":"https://api.github.com/users/jon-hall/orgs","repos_url":"https://api.github.com/users/jon-hall/repos","events_url":"https://api.github.com/users/jon-hall/events{/privacy}","received_events_url":"https://api.github.com/users/jon-hall/received_events","type":"User","site_admin":false},"created_at":"2015-01-26T18:09:12Z","updated_at":"2015-01-26T18:09:12Z","body":"Unfortunately, I'm getting the same issue, and setting sourceRoot to '' doesn't appear to resolve it.  My build step looks like this:\r\n\r\n    gulp.task('tsc', [], function () {\r\n        'use strict';\r\n        var tsRes = gulp.src('src/*.ts', { base: './' })\r\n                    .pipe($.sourcemaps.init())\r\n                    .pipe($.typescript({\r\n                        target: 'ES6',\r\n                        sortOutput: true\r\n                    }));\r\n\r\n        return tsRes.js\r\n            .pipe($.concat('script.js'))\r\n            .pipe($.sourcemaps.write('.', { includeContent: false, sourceRoot: '' }))\r\n            .pipe(gulp.dest('./dist'));\r\n    });\r\n\r\nMy TypeScript files are all internal modules present under the 'src' directory, and the generated sourcemap's 'sources' collection ends up containing all absolute paths; while the map file the TypeScript compiler generates when using the --out flag has relative paths."}}