Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server side code doesn't support ES6 syntax #57

Open
tanaypratap opened this issue Sep 22, 2016 · 2 comments
Open

Server side code doesn't support ES6 syntax #57

tanaypratap opened this issue Sep 22, 2016 · 2 comments

Comments

@tanaypratap
Copy link

tanaypratap commented Sep 22, 2016

The server.js file is plain old JS and doesn't support ES6 code while this is needed for writing code in current JS standards. I need this very much because I want to server side rendering and to run react on server side we would need JSX and other compilers working for server.js as well.
Can we configure webpack to use es6 loaders for server side code as well?

@rmariuzzo
Copy link

I'm facing the same issue right now... :'(

@kbariotis
Copy link
Contributor

Indeed the Readme says

Babel and Linting
Both Node server and frontend code runs with Babel. And all ...

But the server doesn't seem to be transpiled as well. Maybe the author (@christianalfoni) changed the direction of the project at some point.

I would love to give it a try and setup server side transpilation again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants