bananaoomarang / isomorphic-redux

Isomorphic Redux demo, with routing and async actions
https://medium.com/@bananaoomarang/handcrafting-an-isomorphic-redux-application-with-love-40ada4468af4
MIT License
455 stars 87 forks source link

Error importing router. Why repo works? #55

Closed felixsanz closed 8 years ago

felixsanz commented 8 years ago

on line 5 -> import routes from 'routes';

Why it does even works? There is no routes.js/jsx or routes/ folder. It makes no sense :confused:

Dattaya commented 8 years ago

Importing this way works due to this line in the webpack config: modulesDirectories: ['node_modules', 'shared'], It will search not only node_modules but also shared folder where routes.jsx is currently located.

felixsanz commented 8 years ago

thanks!