{"action":"created","issue":{"url":"https://api.github.com/repos/kadirahq/react-storybook/issues/35","repository_url":"https://api.github.com/repos/kadirahq/react-storybook","labels_url":"https://api.github.com/repos/kadirahq/react-storybook/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/kadirahq/react-storybook/issues/35/comments","events_url":"https://api.github.com/repos/kadirahq/react-storybook/issues/35/events","html_url":"https://github.com/kadirahq/react-storybook/issues/35","id":145549152,"number":35,"title":"JSX files not resolved","user":{"login":"tomitrescak","id":2682705,"avatar_url":"https://avatars.githubusercontent.com/u/2682705?v=3","gravatar_id":"","url":"https://api.github.com/users/tomitrescak","html_url":"https://github.com/tomitrescak","followers_url":"https://api.github.com/users/tomitrescak/followers","following_url":"https://api.github.com/users/tomitrescak/following{/other_user}","gists_url":"https://api.github.com/users/tomitrescak/gists{/gist_id}","starred_url":"https://api.github.com/users/tomitrescak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomitrescak/subscriptions","organizations_url":"https://api.github.com/users/tomitrescak/orgs","repos_url":"https://api.github.com/users/tomitrescak/repos","events_url":"https://api.github.com/users/tomitrescak/events{/privacy}","received_events_url":"https://api.github.com/users/tomitrescak/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-03T22:56:35Z","updated_at":"2016-04-03T23:35:17Z","closed_at":null,"body":"I'm creating a spearate issue following on #33 when it is not possible to use typescript with storybook as jsx files are not resolved and storybook is concerned only with js files. Here is what I attempted yet it does not work:\r\n\r\n```\r\nconst path = require('path');\r\nmodule.exports = {\r\n  module: {\r\n    resolve: {\r\n      extensions: ['', '.js', '.jsx']\r\n    },\r\n    loaders: [\r\n      {\r\n        test: /\\.jsx?$/,\r\n        loader: 'babel',\r\n        query: { presets: ['react', 'es2015', 'stage-2'] },\r\n        exclude: [path.resolve('./node_modules'), path.resolve(__dirname, 'node_modules')],\r\n        include: [path.resolve('./'), __dirname],\r\n      },\r\n      {\r\n        test: /\\.css?$/,\r\n        loaders: [ 'style', 'raw' ],\r\n        include: path.resolve(__dirname, '../')\r\n      }\r\n    ]\r\n  }\r\n};\r\n```"},"comment":{"url":"https://api.github.com/repos/kadirahq/react-storybook/issues/comments/205077195","html_url":"https://github.com/kadirahq/react-storybook/issues/35#issuecomment-205077195","issue_url":"https://api.github.com/repos/kadirahq/react-storybook/issues/35","id":205077195,"user":{"login":"arunoda","id":50838,"avatar_url":"https://avatars.githubusercontent.com/u/50838?v=3","gravatar_id":"","url":"https://api.github.com/users/arunoda","html_url":"https://github.com/arunoda","followers_url":"https://api.github.com/users/arunoda/followers","following_url":"https://api.github.com/users/arunoda/following{/other_user}","gists_url":"https://api.github.com/users/arunoda/gists{/gist_id}","starred_url":"https://api.github.com/users/arunoda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arunoda/subscriptions","organizations_url":"https://api.github.com/users/arunoda/orgs","repos_url":"https://api.github.com/users/arunoda/repos","events_url":"https://api.github.com/users/arunoda/events{/privacy}","received_events_url":"https://api.github.com/users/arunoda/received_events","type":"User","site_admin":false},"created_at":"2016-04-03T23:35:17Z","updated_at":"2016-04-03T23:35:17Z","body":"There is a PR for JSX and I will take it as soon week started.\r\n\r\nSo, what about the type script, I didn't get it. "}}