{"action":"created","issue":{"url":"https://api.github.com/repos/6to5/6to5/issues/732","labels_url":"https://api.github.com/repos/6to5/6to5/issues/732/labels{/name}","comments_url":"https://api.github.com/repos/6to5/6to5/issues/732/comments","events_url":"https://api.github.com/repos/6to5/6to5/issues/732/events","html_url":"https://github.com/6to5/6to5/issues/732","id":57036049,"number":732,"title":"With to5Options.moduleIds: true module names include whole path","user":{"login":"johlrich","id":1655793,"avatar_url":"https://avatars.githubusercontent.com/u/1655793?v=3","gravatar_id":"","url":"https://api.github.com/users/johlrich","html_url":"https://github.com/johlrich","followers_url":"https://api.github.com/users/johlrich/followers","following_url":"https://api.github.com/users/johlrich/following{/other_user}","gists_url":"https://api.github.com/users/johlrich/gists{/gist_id}","starred_url":"https://api.github.com/users/johlrich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johlrich/subscriptions","organizations_url":"https://api.github.com/users/johlrich/orgs","repos_url":"https://api.github.com/users/johlrich/repos","events_url":"https://api.github.com/users/johlrich/events{/privacy}","received_events_url":"https://api.github.com/users/johlrich/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-09T14:19:33Z","updated_at":"2015-02-10T11:36:32Z","closed_at":null,"body":"Originally from https://github.com/6to5/karma-6to5-preprocessor/issues/5\r\n\r\nWith to5Options.moduleIds: true module names are including the entire path. I tried setting the sourceRoot, but then the path was duplicated before the desired module portion.\r\n\r\nThe only way I was able to get just the module portion was to add filenameRelative to the per file options and assign it a function to strip the initial path. I feel like I'm missing something simple over this being a bug. Thoughts?\r\n\r\nNot sure if this matters, but I am on windows."},"comment":{"url":"https://api.github.com/repos/6to5/6to5/issues/comments/73685671","html_url":"https://github.com/6to5/6to5/issues/732#issuecomment-73685671","issue_url":"https://api.github.com/repos/6to5/6to5/issues/732","id":73685671,"user":{"login":"johlrich","id":1655793,"avatar_url":"https://avatars.githubusercontent.com/u/1655793?v=3","gravatar_id":"","url":"https://api.github.com/users/johlrich","html_url":"https://github.com/johlrich","followers_url":"https://api.github.com/users/johlrich/followers","following_url":"https://api.github.com/users/johlrich/following{/other_user}","gists_url":"https://api.github.com/users/johlrich/gists{/gist_id}","starred_url":"https://api.github.com/users/johlrich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johlrich/subscriptions","organizations_url":"https://api.github.com/users/johlrich/orgs","repos_url":"https://api.github.com/users/johlrich/repos","events_url":"https://api.github.com/users/johlrich/events{/privacy}","received_events_url":"https://api.github.com/users/johlrich/received_events","type":"User","site_admin":false},"created_at":"2015-02-10T11:36:32Z","updated_at":"2015-02-10T11:36:32Z","body":"```\r\n  var to5Options = {\r\n      sourceMap: true,\r\n      modules: 'system',\r\n      moduleIds: true,\r\n      sourceRoot: process.cwd(),\r\n  };\r\n```\r\n\r\n`filename` on disk: `C:\\Dev\\bitbucket\\ng-devenv\\workform\\workform.spec.js`\r\n\r\nAfter you mentioned moduleRoot I tried setting it to `''` in the to5Options and that actually worked. After re-reading the options docs and the description of moduleRoot I suppose that makes sense. At the same time having the default moduleRoot = (sourceRoot) would make me think the system knew to carve off the sourceRoot from the moduleRoot when creating the final paths. I guess I'm a bit confused at what proper values are for this setting."}}