{"action":"created","issue":{"url":"https://api.github.com/repos/systemjs/systemjs/issues/1717","repository_url":"https://api.github.com/repos/systemjs/systemjs","labels_url":"https://api.github.com/repos/systemjs/systemjs/issues/1717/labels{/name}","comments_url":"https://api.github.com/repos/systemjs/systemjs/issues/1717/comments","events_url":"https://api.github.com/repos/systemjs/systemjs/issues/1717/events","html_url":"https://github.com/systemjs/systemjs/issues/1717","id":247550895,"number":1717,"title":"Relative paths: SystemJS.import() vs SystemJS.register()","user":{"login":"DavidKDeutsch","id":1472167,"avatar_url":"https://avatars0.githubusercontent.com/u/1472167?v=4","gravatar_id":"","url":"https://api.github.com/users/DavidKDeutsch","html_url":"https://github.com/DavidKDeutsch","followers_url":"https://api.github.com/users/DavidKDeutsch/followers","following_url":"https://api.github.com/users/DavidKDeutsch/following{/other_user}","gists_url":"https://api.github.com/users/DavidKDeutsch/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidKDeutsch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidKDeutsch/subscriptions","organizations_url":"https://api.github.com/users/DavidKDeutsch/orgs","repos_url":"https://api.github.com/users/DavidKDeutsch/repos","events_url":"https://api.github.com/users/DavidKDeutsch/events{/privacy}","received_events_url":"https://api.github.com/users/DavidKDeutsch/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-08-02T23:23:38Z","updated_at":"2017-08-24T20:21:38Z","closed_at":"2017-08-24T20:21:38Z","body":"When I call `SystemJS.import('./myFile')` from a module, the file is loaded from the baseUrl instead of relative to my module's location, which I have read is by design(?). However in the `register` call I use to define that module, dependencies declared in the same way (i.e. \"./myFile\") are indeed loaded relative to the module's location. Is there any way to tell SystemJS to use the same logic for `import()`? FWIW, I am dynamically loading modules at runtime, which is why I am using `import` instead of `register`."},"comment":{"url":"https://api.github.com/repos/systemjs/systemjs/issues/comments/324746361","html_url":"https://github.com/systemjs/systemjs/issues/1717#issuecomment-324746361","issue_url":"https://api.github.com/repos/systemjs/systemjs/issues/1717","id":324746361,"user":{"login":"DavidKDeutsch","id":1472167,"avatar_url":"https://avatars0.githubusercontent.com/u/1472167?v=4","gravatar_id":"","url":"https://api.github.com/users/DavidKDeutsch","html_url":"https://github.com/DavidKDeutsch","followers_url":"https://api.github.com/users/DavidKDeutsch/followers","following_url":"https://api.github.com/users/DavidKDeutsch/following{/other_user}","gists_url":"https://api.github.com/users/DavidKDeutsch/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidKDeutsch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidKDeutsch/subscriptions","organizations_url":"https://api.github.com/users/DavidKDeutsch/orgs","repos_url":"https://api.github.com/users/DavidKDeutsch/repos","events_url":"https://api.github.com/users/DavidKDeutsch/events{/privacy}","received_events_url":"https://api.github.com/users/DavidKDeutsch/received_events","type":"User","site_admin":false},"created_at":"2017-08-24T20:21:38Z","updated_at":"2017-08-24T20:21:38Z","body":"Ah, looking at the SystemJS repo history, that seems to be exactly the case; I am using version 0.19.46, as that is what the latest (non-beta) version of JSPM (0.16.53) depends on. Given how new I am to the whole SystemJS/JSPM ecosystem, I'm probably going to wait until 0.17 is stable (it has been in beta for over 7 months, so hopefully that is soon!). Thanks for solving the mystery!"}}
{"actor":{"display_login":"DavidKDeutsch"}}