{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/279","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/279/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/279/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/279/events","html_url":"https://github.com/Microsoft/TypeScript/issues/279","id":38941920,"number":279,"title":"Support non-code AMD modules","user":{"login":"fsoikin","id":4219105,"avatar_url":"https://avatars.githubusercontent.com/u/4219105?v=3","gravatar_id":"","url":"https://api.github.com/users/fsoikin","html_url":"https://github.com/fsoikin","followers_url":"https://api.github.com/users/fsoikin/followers","following_url":"https://api.github.com/users/fsoikin/following{/other_user}","gists_url":"https://api.github.com/users/fsoikin/gists{/gist_id}","starred_url":"https://api.github.com/users/fsoikin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fsoikin/subscriptions","organizations_url":"https://api.github.com/users/fsoikin/orgs","repos_url":"https://api.github.com/users/fsoikin/repos","events_url":"https://api.github.com/users/fsoikin/events{/privacy}","received_events_url":"https://api.github.com/users/fsoikin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Needs%20Proposal","name":"Needs Proposal","color":"556b75"},{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Suggestion","name":"Suggestion","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-07-28T22:52:18Z","updated_at":"2015-04-28T18:44:39Z","closed_at":null,"body":"Original issue on CodePlex: https://typescript.codeplex.com/workitem/1046\r\n\r\n## Problem\r\nNeed to `require` text, CSS, and other non-code things.\r\n\r\n```\r\nimport template: string = require( \"text!./Templates/MyTemplate.html\" );\r\n```\r\n\r\n## Partial workaround\r\nUse the `/// <amd-dependency path=\"x\" />` tag.\r\n\r\n```\r\n// At the top of the file\r\n/// <amd-dependency path=\"text!./Templates/MyTemplate.html\" />\r\n\r\n... <snip> ...\r\n\r\ndeclare function require( path: string ): any;\r\nvar template: string = require( \"text!./Templates/MyTemplate.html\" );\r\n```\r\n\r\n## Why workaround is not good enough\r\nHave to type the module name twice."},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/97166927","html_url":"https://github.com/Microsoft/TypeScript/issues/279#issuecomment-97166927","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/279","id":97166927,"user":{"login":"mhegazy","id":8000722,"avatar_url":"https://avatars.githubusercontent.com/u/8000722?v=3","gravatar_id":"","url":"https://api.github.com/users/mhegazy","html_url":"https://github.com/mhegazy","followers_url":"https://api.github.com/users/mhegazy/followers","following_url":"https://api.github.com/users/mhegazy/following{/other_user}","gists_url":"https://api.github.com/users/mhegazy/gists{/gist_id}","starred_url":"https://api.github.com/users/mhegazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhegazy/subscriptions","organizations_url":"https://api.github.com/users/mhegazy/orgs","repos_url":"https://api.github.com/users/mhegazy/repos","events_url":"https://api.github.com/users/mhegazy/events{/privacy}","received_events_url":"https://api.github.com/users/mhegazy/received_events","type":"User","site_admin":false},"created_at":"2015-04-28T18:44:39Z","updated_at":"2015-04-28T18:44:39Z","body":"@RichiCoder1, i am interested to know what you mean by \"mapped\". Would that be something covered by mapping paths for module? can you take a look at #2338, and see if this fits your scenario?"}}