{"action":"created","issue":{"url":"https://api.github.com/repos/storybooks/storybook/issues/1541","repository_url":"https://api.github.com/repos/storybooks/storybook","labels_url":"https://api.github.com/repos/storybooks/storybook/issues/1541/labels{/name}","comments_url":"https://api.github.com/repos/storybooks/storybook/issues/1541/comments","events_url":"https://api.github.com/repos/storybooks/storybook/issues/1541/events","html_url":"https://github.com/storybooks/storybook/issues/1541","id":246370232,"number":1541,"title":"Storybook with TypeScript based application","user":{"login":"sergeyzwezdin","id":800755,"avatar_url":"https://avatars2.githubusercontent.com/u/800755?v=4","gravatar_id":"","url":"https://api.github.com/users/sergeyzwezdin","html_url":"https://github.com/sergeyzwezdin","followers_url":"https://api.github.com/users/sergeyzwezdin/followers","following_url":"https://api.github.com/users/sergeyzwezdin/following{/other_user}","gists_url":"https://api.github.com/users/sergeyzwezdin/gists{/gist_id}","starred_url":"https://api.github.com/users/sergeyzwezdin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergeyzwezdin/subscriptions","organizations_url":"https://api.github.com/users/sergeyzwezdin/orgs","repos_url":"https://api.github.com/users/sergeyzwezdin/repos","events_url":"https://api.github.com/users/sergeyzwezdin/events{/privacy}","received_events_url":"https://api.github.com/users/sergeyzwezdin/received_events","type":"User","site_admin":false},"labels":[{"id":626669469,"url":"https://api.github.com/repos/storybooks/storybook/labels/app:%20react","name":"app: react","color":"f9d0c4","default":false},{"id":571245712,"url":"https://api.github.com/repos/storybooks/storybook/labels/compatibility%20with%20other%20tools","name":"compatibility with other tools","color":"F1951D","default":false},{"id":343576459,"url":"https://api.github.com/repos/storybooks/storybook/labels/question%20/%20support","name":"question / support","color":"cc317c","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-28T14:50:22Z","updated_at":"2017-08-01T15:32:57Z","closed_at":null,"body":"I've created [typescript based](https://github.com/wmonk/create-react-app-typescript) React app (with `create-react-app`) and added storybook there (by using `getstroybook` CLI command).\r\n\r\nI've [added](https://github.com/sergeyzwezdin/storybook-with-ts/blob/master/.storybook/webpack.config.js) `webpack.config.js` to define `ts-loader` to transpile my TypeScript code.\r\n\r\nI've placed whole code here - https://github.com/sergeyzwezdin/storybook-with-ts\r\n\r\nThe problem is storybook building takes around 15 seconds with just single story. If I make the same for my real project it takes more than 20 seconds which is quite slow.\r\n\r\nI guess this is because of both `babel-loader` and `ts-loader` build `node_modules` folder (I can see this process at console). Any way to avoid building `node_modules`.\r\n\r\nP.S. I'm migrating application from `@kadira/storybook` to `@storybook/react`. With `@kadira/storybook` it worked much faster for me with the same codebase."},"comment":{"url":"https://api.github.com/repos/storybooks/storybook/issues/comments/319407237","html_url":"https://github.com/storybooks/storybook/issues/1541#issuecomment-319407237","issue_url":"https://api.github.com/repos/storybooks/storybook/issues/1541","id":319407237,"user":{"login":"KaySackey","id":525320,"avatar_url":"https://avatars3.githubusercontent.com/u/525320?v=4","gravatar_id":"","url":"https://api.github.com/users/KaySackey","html_url":"https://github.com/KaySackey","followers_url":"https://api.github.com/users/KaySackey/followers","following_url":"https://api.github.com/users/KaySackey/following{/other_user}","gists_url":"https://api.github.com/users/KaySackey/gists{/gist_id}","starred_url":"https://api.github.com/users/KaySackey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KaySackey/subscriptions","organizations_url":"https://api.github.com/users/KaySackey/orgs","repos_url":"https://api.github.com/users/KaySackey/repos","events_url":"https://api.github.com/users/KaySackey/events{/privacy}","received_events_url":"https://api.github.com/users/KaySackey/received_events","type":"User","site_admin":false},"created_at":"2017-08-01T15:32:57Z","updated_at":"2017-08-01T15:32:57Z","body":"You don't have to double up on babel-loader and ts-loader. ts-loader can load javascript for you, and you're transpiling the Typescript down to ES5/commonjs modules anyways. \r\n\r\nI'm not seeing anything that should make this so slow, exclude: /node_modules/ should already be excluding your node_modules."}}
{"actor":{"display_login":"KaySackey"}}