Find a better way of importing the app's "routes" component into pubsweet-client
At the moment pubsweet-client's Root
components contain import routes from 'app/routes'
, where app/routes
is actually part of the main app, which adds itself to the module resolve path in its webpack config.
Unfortunately this breaks compilation of any components that use import { actions } from 'pubsweet-client'
when building with webpack, as the whole tree gets processed and app/routes
isn't defined.
The workaround is to use import actions from 'pubsweet-client/src/actions'
in the component instead.