{"action":"created","issue":{"url":"https://api.github.com/repos/fgnass/node-dev/issues/91","labels_url":"https://api.github.com/repos/fgnass/node-dev/issues/91/labels{/name}","comments_url":"https://api.github.com/repos/fgnass/node-dev/issues/91/comments","events_url":"https://api.github.com/repos/fgnass/node-dev/issues/91/events","html_url":"https://github.com/fgnass/node-dev/issues/91","id":60224364,"number":91,"title":"Doesn't work with JSX files","user":{"login":"kimmobrunfeldt","id":1232405,"avatar_url":"https://avatars.githubusercontent.com/u/1232405?v=3","gravatar_id":"","url":"https://api.github.com/users/kimmobrunfeldt","html_url":"https://github.com/kimmobrunfeldt","followers_url":"https://api.github.com/users/kimmobrunfeldt/followers","following_url":"https://api.github.com/users/kimmobrunfeldt/following{/other_user}","gists_url":"https://api.github.com/users/kimmobrunfeldt/gists{/gist_id}","starred_url":"https://api.github.com/users/kimmobrunfeldt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kimmobrunfeldt/subscriptions","organizations_url":"https://api.github.com/users/kimmobrunfeldt/orgs","repos_url":"https://api.github.com/users/kimmobrunfeldt/repos","events_url":"https://api.github.com/users/kimmobrunfeldt/events{/privacy}","received_events_url":"https://api.github.com/users/kimmobrunfeldt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-07T21:04:15Z","updated_at":"2015-04-03T12:22:33Z","closed_at":null,"body":"Hi, I like the simplicity of node-dev but it doesn't work with JSX files. I'm working with server-side rendering where I use [node-jsx](https://github.com/petehunt/node-jsx) to import .jsx files. \r\n\r\nMy require looks like this:\r\n\r\n```javascript\r\nrequire('node-jsx').install();\r\nvar routes = require('./frontend/scripts/routes.jsx');\r\n```\r\n\r\nChanging routes.jsx does not cause reload."},"comment":{"url":"https://api.github.com/repos/fgnass/node-dev/issues/comments/89271285","html_url":"https://github.com/fgnass/node-dev/issues/91#issuecomment-89271285","issue_url":"https://api.github.com/repos/fgnass/node-dev/issues/91","id":89271285,"user":{"login":"Kingdutch","id":327697,"avatar_url":"https://avatars.githubusercontent.com/u/327697?v=3","gravatar_id":"","url":"https://api.github.com/users/Kingdutch","html_url":"https://github.com/Kingdutch","followers_url":"https://api.github.com/users/Kingdutch/followers","following_url":"https://api.github.com/users/Kingdutch/following{/other_user}","gists_url":"https://api.github.com/users/Kingdutch/gists{/gist_id}","starred_url":"https://api.github.com/users/Kingdutch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kingdutch/subscriptions","organizations_url":"https://api.github.com/users/Kingdutch/orgs","repos_url":"https://api.github.com/users/Kingdutch/repos","events_url":"https://api.github.com/users/Kingdutch/events{/privacy}","received_events_url":"https://api.github.com/users/Kingdutch/received_events","type":"User","site_admin":false},"created_at":"2015-04-03T12:22:33Z","updated_at":"2015-04-03T12:22:33Z","body":"I don't think encapsulating module.require to store the files loaded through it is a worse approach than the current hooks. \r\n\r\nMy problem with node-jsx is that I'm using browserift to encapsulate my app and the same code (standard es5 using Babel) is run on the server and the client. So node-jsx changing the way files on the server are loaded vs the client could cause subtle/hard to spot bugs."}}