{"action":"created","issue":{"url":"https://api.github.com/repos/pc035860/angular-highlightjs/issues/47","labels_url":"https://api.github.com/repos/pc035860/angular-highlightjs/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/pc035860/angular-highlightjs/issues/47/comments","events_url":"https://api.github.com/repos/pc035860/angular-highlightjs/issues/47/events","html_url":"https://github.com/pc035860/angular-highlightjs/issues/47","id":100142912,"number":47,"title":".js suffix for highlightjs dependency","user":{"login":"divyakumarjain","id":2039134,"avatar_url":"https://avatars.githubusercontent.com/u/2039134?v=3","gravatar_id":"","url":"https://api.github.com/users/divyakumarjain","html_url":"https://github.com/divyakumarjain","followers_url":"https://api.github.com/users/divyakumarjain/followers","following_url":"https://api.github.com/users/divyakumarjain/following{/other_user}","gists_url":"https://api.github.com/users/divyakumarjain/gists{/gist_id}","starred_url":"https://api.github.com/users/divyakumarjain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/divyakumarjain/subscriptions","organizations_url":"https://api.github.com/users/divyakumarjain/orgs","repos_url":"https://api.github.com/users/divyakumarjain/repos","events_url":"https://api.github.com/users/divyakumarjain/events{/privacy}","received_events_url":"https://api.github.com/users/divyakumarjain/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-08-10T19:01:51Z","updated_at":"2015-11-12T09:44:19Z","closed_at":null,"body":"I am trying to use angular-highlightjs with requirejs. because of dependency on \"highlight.js\" (notice th .js suffix) require tries to load highlightjs from application base path. Following extract from requirejs api\r\n\r\nRequireJS also assumes by default that all dependencies are scripts, so it does not expect to see a trailing \".js\" suffix on module IDs. RequireJS will automatically add it when translating the module ID to a path. With the paths config, you can set up locations of a group of scripts. All of these capabilities allow you to use smaller strings for scripts as compared to traditional <script> tags.\r\nThere may be times when you do want to reference a script directly and not conform to the \"baseUrl + paths\" rules for finding it. If a module ID has one of the following characteristics, the ID will not be passed through the \"baseUrl + paths\" configuration, and just be treated like a regular URL that is relative to the document:\r\n1. Ends in \".js\".\r\n2. Starts with a \"/\".\r\n3. Contains an URL protocol, like \"http:\" or \"https:\".\r\n\r\nsource: http://requirejs.org/docs/api.html\r\n\r\nAlso have a sample to play with.\r\n\r\nhttps://jsfiddle.net/shg4wnfs/3/\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/pc035860/angular-highlightjs/issues/comments/156050732","html_url":"https://github.com/pc035860/angular-highlightjs/issues/47#issuecomment-156050732","issue_url":"https://api.github.com/repos/pc035860/angular-highlightjs/issues/47","id":156050732,"user":{"login":"cAhmad","id":1204832,"avatar_url":"https://avatars.githubusercontent.com/u/1204832?v=3","gravatar_id":"","url":"https://api.github.com/users/cAhmad","html_url":"https://github.com/cAhmad","followers_url":"https://api.github.com/users/cAhmad/followers","following_url":"https://api.github.com/users/cAhmad/following{/other_user}","gists_url":"https://api.github.com/users/cAhmad/gists{/gist_id}","starred_url":"https://api.github.com/users/cAhmad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cAhmad/subscriptions","organizations_url":"https://api.github.com/users/cAhmad/orgs","repos_url":"https://api.github.com/users/cAhmad/repos","events_url":"https://api.github.com/users/cAhmad/events{/privacy}","received_events_url":"https://api.github.com/users/cAhmad/received_events","type":"User","site_admin":false},"created_at":"2015-11-12T09:44:19Z","updated_at":"2015-11-12T09:44:19Z","body":"Hi, thanks for your new release.\r\n\r\nBut, it tries now to load `hljs.js` file which does not exist.\r\nDon't know if it helps but I'm working with `jspm`, the module to load in my case is `highlightjs`"}}