{"action":"opened","issue":{"url":"https://api.github.com/repos/letorbi/smoothie/issues/12","repository_url":"https://api.github.com/repos/letorbi/smoothie","labels_url":"https://api.github.com/repos/letorbi/smoothie/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/letorbi/smoothie/issues/12/comments","events_url":"https://api.github.com/repos/letorbi/smoothie/issues/12/events","html_url":"https://github.com/letorbi/smoothie/issues/12","id":160029385,"number":12,"title":"Require relative paths doesn't unwind","user":{"login":"d3x0r","id":1909610,"avatar_url":"https://avatars.githubusercontent.com/u/1909610?v=3","gravatar_id":"","url":"https://api.github.com/users/d3x0r","html_url":"https://github.com/d3x0r","followers_url":"https://api.github.com/users/d3x0r/followers","following_url":"https://api.github.com/users/d3x0r/following{/other_user}","gists_url":"https://api.github.com/users/d3x0r/gists{/gist_id}","starred_url":"https://api.github.com/users/d3x0r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d3x0r/subscriptions","organizations_url":"https://api.github.com/users/d3x0r/orgs","repos_url":"https://api.github.com/users/d3x0r/repos","events_url":"https://api.github.com/users/d3x0r/events{/privacy}","received_events_url":"https://api.github.com/users/d3x0r/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-13T19:45:25Z","updated_at":"2016-06-13T19:45:25Z","closed_at":null,"body":"I've been considering a simple case to demonstrate, but I'll just post what I noticed for now.\r\n\r\nI have a project something like\r\n\r\nVoxelarium/Voxelarium.js - requires ./src/voxels.js\r\nVoxelarium/src/voxels.js - required dynamically (./voxes/voxel_###.js) until it fails to find the next in line.\r\nthen Voxelarium.js requires ./src/sector.js\r\n\r\nat this point the request that goes to the server is 'http://localhost/src/src/sector.js' (it keeps 'src' in there from when voxels.js loaded a requirement from a relative path... \r\n\r\n\r\n---Voxelarim.js---\r\n\r\nrequire( \"./src/voxels.js\" )\r\nrequire( \"./src/sector.js\" )\r\n\r\n-- Voxels.js ---\r\nrequire( \"./voxels/voxel_1.js\" );\r\n\r\n-----------\r\nIn voxels.js I previously was doing\r\n```\r\n\t\txhrObj.open('GET', `./src/voxels/voxel_${n}.js`, false);\r\n\t\txhrObj.send(null);\r\n\t\teval(xhrObj.responseText);\r\n\r\n\t\t//require( `./voxels/voxel_${n}.js` )\r\n```\r\nwhich I realized I could just replace with require now that I'm using your module... but then loading started failing."}}
{"actor":{"display_login":"d3x0r"}}