{"action":"closed","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/4602","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/4602/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/4602/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/4602/events","html_url":"https://github.com/Microsoft/TypeScript/issues/4602","id":104444197,"number":4602,"title":"import when there is no module (for SystemJS side effects)","user":{"login":"myitcv","id":3374574,"avatar_url":"https://avatars.githubusercontent.com/u/3374574?v=3","gravatar_id":"","url":"https://api.github.com/users/myitcv","html_url":"https://github.com/myitcv","followers_url":"https://api.github.com/users/myitcv/followers","following_url":"https://api.github.com/users/myitcv/following{/other_user}","gists_url":"https://api.github.com/users/myitcv/gists{/gist_id}","starred_url":"https://api.github.com/users/myitcv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myitcv/subscriptions","organizations_url":"https://api.github.com/users/myitcv/orgs","repos_url":"https://api.github.com/users/myitcv/repos","events_url":"https://api.github.com/users/myitcv/events{/privacy}","received_events_url":"https://api.github.com/users/myitcv/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":2,"created_at":"2015-09-02T09:57:58Z","updated_at":"2015-09-03T08:19:59Z","closed_at":"2015-09-03T08:19:59Z","body":"Apologies if this is a duplicate of an existing issue, but I haven't been able to find an answer to this specific issue. I note however #2839\r\n\r\nA summary of the config/setup for our app:\r\n\r\n* TypeScript `v1.7.0-dev.20150827`\r\n* `tsd v0.6.4-beta`\r\n*  `tsconfig.json`:\r\n\r\n```json\r\n{\r\n  \"compilerOptions\": {\r\n    \"target\": \"es5\",\r\n    \"module\": \"system\",\r\n    \"declaration\": false,\r\n    \"noImplicitAny\": true,\r\n    \"removeComments\": false,\r\n    \"noLib\": false,\r\n    \"sourceMap\": true,\r\n    \"jsx\": \"react\"\r\n  }\r\n}\r\n```\r\n\r\nOur app depends on [`bootstrap-slider`](https://github.com/borisyankov/DefinitelyTyped/blob/master/bootstrap-slider/bootstrap-slider.d.ts); as you can see this type definition does not define a module. Instead it 'extends' [`jquery`](https://github.com/borisyankov/DefinitelyTyped/blob/master/jquery/jquery.d.ts) in what I understand is the usual way for JQuery components. Via `tsd` our app defines a ` tsd.d.ts` file that references the `bootstrap-slider` and `jquery` type definitions, amongst others.\r\n\r\nNow consider a `.tsx` file where we define a React component that wraps `bootstrap-slider`. This `.tsx` file references the `tsd.d.ts` definition. \r\n\r\n`jquery` [declares `$`](https://github.com/borisyankov/DefinitelyTyped/blob/1d6c126e8ead25892ded5a32df2e813ffad06905/jquery/jquery.d.ts#L3178), hence there is no need to import `jquery`. Nor is there a need to import `bootstrap-slider` from a typing perspective because we will reference everything we need via `jquery`'s `$` (indeed to try and do so would fail because there is no module by the name of `\"bootstrap-slider\"` defined)\r\n\r\nHowever, this now presents a problem because nowhere in our application are we declaring via an import a dependency on `bootstrap-slider`. The generated code (target ES5, module SystemJS) does not include a reference to `bootstrap-slider` and hence the relevant JS files are not loaded at runtime.\r\n\r\nWhat is the recommended solution in this situation?\r\nShould the `bootstrap-slider` type definition include a module definition for exactly this reason?\r\nOr are we missing a more obvious solution?\r\n\r\nThanks"}}