{"action":"created","issue":{"url":"https://api.github.com/repos/jbrantly/ts-loader/issues/19","labels_url":"https://api.github.com/repos/jbrantly/ts-loader/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/jbrantly/ts-loader/issues/19/comments","events_url":"https://api.github.com/repos/jbrantly/ts-loader/issues/19/events","html_url":"https://github.com/jbrantly/ts-loader/issues/19","id":85547944,"number":19,"title":"noLib option in tsconfig.json","user":{"login":"use-strict","id":9483866,"avatar_url":"https://avatars.githubusercontent.com/u/9483866?v=3","gravatar_id":"","url":"https://api.github.com/users/use-strict","html_url":"https://github.com/use-strict","followers_url":"https://api.github.com/users/use-strict/followers","following_url":"https://api.github.com/users/use-strict/following{/other_user}","gists_url":"https://api.github.com/users/use-strict/gists{/gist_id}","starred_url":"https://api.github.com/users/use-strict/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/use-strict/subscriptions","organizations_url":"https://api.github.com/users/use-strict/orgs","repos_url":"https://api.github.com/users/use-strict/repos","events_url":"https://api.github.com/users/use-strict/events{/privacy}","received_events_url":"https://api.github.com/users/use-strict/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-05T14:38:34Z","updated_at":"2015-06-05T15:16:33Z","closed_at":null,"body":"The \"noLib\" compiler option doesn't work. It looks like the lib.*.d.ts file is manually added from index.js:71-75.\r\n\r\nI don't fully understand the intent here, but from what I read on the TypeScript docs, if the files option is not specified, then the whole directory is recursively included. I assume you are including the lib manually because there is no \"exclude\" option and you don't want to recursively include everything.\r\n\r\nIdeally, there should be no preprocessing of the \"tsconfig.json\" file. At the very least, manually check for \"noLib\" and add an empty dummy file instead, to override the default behavior."},"comment":{"url":"https://api.github.com/repos/jbrantly/ts-loader/issues/comments/109324867","html_url":"https://github.com/jbrantly/ts-loader/issues/19#issuecomment-109324867","issue_url":"https://api.github.com/repos/jbrantly/ts-loader/issues/19","id":109324867,"user":{"login":"jbrantly","id":196944,"avatar_url":"https://avatars.githubusercontent.com/u/196944?v=3","gravatar_id":"","url":"https://api.github.com/users/jbrantly","html_url":"https://github.com/jbrantly","followers_url":"https://api.github.com/users/jbrantly/followers","following_url":"https://api.github.com/users/jbrantly/following{/other_user}","gists_url":"https://api.github.com/users/jbrantly/gists{/gist_id}","starred_url":"https://api.github.com/users/jbrantly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbrantly/subscriptions","organizations_url":"https://api.github.com/users/jbrantly/orgs","repos_url":"https://api.github.com/users/jbrantly/repos","events_url":"https://api.github.com/users/jbrantly/events{/privacy}","received_events_url":"https://api.github.com/users/jbrantly/received_events","type":"User","site_admin":false},"created_at":"2015-06-05T15:16:33Z","updated_at":"2015-06-05T15:16:33Z","body":"I am manually including lib.d.ts because the APIs that the loader calls doesn't do it. In other words, if I didn't load it manually then they simply wouldn't be loaded. However, you're absolutely right that the loader should respect the \"noLib\" option. I'll have to fix that.\r\n\r\nIf you don't include the `files` option in tsconfig.json then all bets are off. The directory is recursively included and that can sometimes pull in stuff that you don't want. My recommendation is to use `files` to add declaration files that you need, or just an empty array if you don't need any."}}