Skip to content

Add app directory to babel-includes

Without this, attempting a pubsweet start or pubsweet build on a fresh app results in the following error message:

$ pubsweet start
    ...truncated output...

    ERROR in ./app/app.js
    Module parse failed: Unexpected token (18:2)
    You may need an appropriate loader to handle this file type.
    |
    | ReactDOM.render(
    |   <AppContainer>
    |     <Root history={history} routes={routes} store={store} />
    |   </AppContainer>,
     @ multi react-hot-loader/patch webpack-hot-middleware/client ./app
webpack: Failed to compile.

Merge request reports