{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/596","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/596/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/596/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/596/events","html_url":"https://github.com/Microsoft/TypeScript/issues/596","id":41940214,"number":596,"title":"force import","user":{"login":"alidorosty1234","id":5099081,"avatar_url":"https://avatars.githubusercontent.com/u/5099081?v=3","gravatar_id":"","url":"https://api.github.com/users/alidorosty1234","html_url":"https://github.com/alidorosty1234","followers_url":"https://api.github.com/users/alidorosty1234/followers","following_url":"https://api.github.com/users/alidorosty1234/following{/other_user}","gists_url":"https://api.github.com/users/alidorosty1234/gists{/gist_id}","starred_url":"https://api.github.com/users/alidorosty1234/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alidorosty1234/subscriptions","organizations_url":"https://api.github.com/users/alidorosty1234/orgs","repos_url":"https://api.github.com/users/alidorosty1234/repos","events_url":"https://api.github.com/users/alidorosty1234/events{/privacy}","received_events_url":"https://api.github.com/users/alidorosty1234/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Question","name":"Question","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2014-09-04T14:00:28Z","updated_at":"2015-02-26T23:28:06Z","closed_at":"2014-09-08T17:08:17Z","body":"I have many scenarios where I would do this:\r\n```typescript\r\nimport myExternalModule = require(\"./myExternalModule\");\r\n// not using myExternalModule here\r\n```\r\nI dont use `myExternalModule` in my code but still I want it to be included using requirejs. I just need it to be there.\r\nIf there could be a `forceimport` keyword that would be very cool!"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/76298294","html_url":"https://github.com/Microsoft/TypeScript/issues/596#issuecomment-76298294","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/596","id":76298294,"user":{"login":"QueueHammer","id":2181368,"avatar_url":"https://avatars.githubusercontent.com/u/2181368?v=3","gravatar_id":"","url":"https://api.github.com/users/QueueHammer","html_url":"https://github.com/QueueHammer","followers_url":"https://api.github.com/users/QueueHammer/followers","following_url":"https://api.github.com/users/QueueHammer/following{/other_user}","gists_url":"https://api.github.com/users/QueueHammer/gists{/gist_id}","starred_url":"https://api.github.com/users/QueueHammer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QueueHammer/subscriptions","organizations_url":"https://api.github.com/users/QueueHammer/orgs","repos_url":"https://api.github.com/users/QueueHammer/repos","events_url":"https://api.github.com/users/QueueHammer/events{/privacy}","received_events_url":"https://api.github.com/users/QueueHammer/received_events","type":"User","site_admin":false},"created_at":"2015-02-26T23:28:06Z","updated_at":"2015-02-26T23:28:06Z","body":"Will the existing inconsistent behavior be address, or remain as something fun for people to discover? Should it be added to the documentation that their is a case where `import` does not add the file as a dependency? When building TypeScript AMD modules will `///<reference...` now be considered an error?\r\n\r\nThe way `import` currently works is bad design. Bad design creates ambiguity. If the additional behavior is not clearly defined then it will more than likely be discovered though it's side effect. Hence the OP, myself, and other comments and bugs related to it in this forum.\r\n\r\nThere is an existing body of practice that already exists when using Common or Require style dependency management. The implementation of `import` shows that it was ignored."}}