{"action":"opened","issue":{"url":"https://api.github.com/repos/shama/workerify/issues/18","repository_url":"https://api.github.com/repos/shama/workerify","labels_url":"https://api.github.com/repos/shama/workerify/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/shama/workerify/issues/18/comments","events_url":"https://api.github.com/repos/shama/workerify/issues/18/events","html_url":"https://github.com/shama/workerify/issues/18","id":146237358,"number":18,"title":"Generating a bundle with multiple entry points - Relative paths to worker file breaking","user":{"login":"tomeightyeight","id":1440005,"avatar_url":"https://avatars.githubusercontent.com/u/1440005?v=3","gravatar_id":"","url":"https://api.github.com/users/tomeightyeight","html_url":"https://github.com/tomeightyeight","followers_url":"https://api.github.com/users/tomeightyeight/followers","following_url":"https://api.github.com/users/tomeightyeight/following{/other_user}","gists_url":"https://api.github.com/users/tomeightyeight/gists{/gist_id}","starred_url":"https://api.github.com/users/tomeightyeight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomeightyeight/subscriptions","organizations_url":"https://api.github.com/users/tomeightyeight/orgs","repos_url":"https://api.github.com/users/tomeightyeight/repos","events_url":"https://api.github.com/users/tomeightyeight/events{/privacy}","received_events_url":"https://api.github.com/users/tomeightyeight/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-06T08:47:04Z","updated_at":"2016-04-06T08:47:04Z","closed_at":null,"body":"I'm using gulp to generate a browserify bundle with two entry points. One for a small Backbone app and the other for site wide modules.\r\n\r\nThe relative path to my worker file specified within one of the site wide modules is no longer working:\r\n\r\n`let workerTimeout = new Worker('./workertimeout');`\r\n\r\nUpon running the gulp build with the multiple entry points the path appears to be perceived to be relative to a different directory to the module that contains reference to the worker file.\r\n\r\nFor example:\r\n\r\n`Error: Cannot find module '/home/tom/domains/italk.tom/project/resources/assets/js/signup/models/workertimeout`\r\n\r\nNo problem if using a single entry point to generate the browserify bundle."}}