React-starter-kit: Debugging server.js directly from a src folder

Created on 2 Jan 2017  路  2Comments  路  Source: kriasoft/react-starter-kit

Just wonder if there's a way to start/debug server.js from a src folder with babel-node or use generated source maps? I guess it's not since it imports css files and needs webpack to bundle it all together ...
In other words, how to tell Webstorm to connect generated server.js.map to a src/server.js, and put breakpoints there...
It's a pain to debug generated server.js from a build folder ...

question

All 2 comments

OK, it automatically works in Webstorm 1017.1 EAP. Not sure if the mappings could be done in early versions.

Can you perhaps share how you got it to work in 2017.1 EAP?

When trying to run /src/server.js directly, I get:
ERROR: only one instance of babel-polyfill is allowed

Was this page helpful?
0 / 5 - 0 ratings