//@flow
import React from 'react'
import { Route, IndexRoute } from 'react-router'
import App from './App'
import Posts from './Posts'
import AddPost from './AddPost'

export default () => ( // eslint-disable-line
  <Route component={App}>
    <Route path="/">
      <IndexRoute component={Posts}/>
      <Route path="addPost" component={AddPost}/>
    </Route>
  </Route>
)

@@ -104,247 +104,697 @@
 pp'%0A
-import Posts from './Posts'%0Aimport AddPost from './AddPost'%0A%0Aexport default () =%3E ( // eslint-disable-line%0A  %3CRoute component=%7BApp%7D%3E%0A    %3CRoute path=%22/%22%3E%0A      %3CIndexRoute component=%7BPosts%7D/%3E%0A      %3CRoute path=%22addPost%22 component=%7BAddPost%7D
+%0Aif (process.env.NODE_ENV === 'development' %7C%7C typeof require.ensure === 'undefined') require.ensure = (undefined, fc) =%3E fc(require)%0A%0Aexport default () =%3E ( // eslint-disable-line%0A  %3CRoute component=%7BApp%7D%3E%0A    %3CRoute path=%22/%22%3E%0A      %3CIndexRoute%0A        getComponent=%7B%0A          (location, callback) =%3E %7B%0A            require.ensure(%5B%5D, (require) =%3E %7B%0A              callback(null, require('./Posts').default)%0A            %7D)%0A          %7D%0A        %7D%0A      /%3E%0A      %3CRoute path=%22addPost%22%0A        getComponent=%7B%0A          (location, callback) =%3E %7B%0A            require.ensure(%5B%5D, (require) =%3E %7B%0A              callback(null, require('./AddPost').default)%0A            %7D)%0A          %7D%0A        %7D%0A      
 /%3E%0A 

Disable code-split in development mode and for server side Load routes bundles on demand.