-
Notifications
You must be signed in to change notification settings - Fork 492
Source maps for included modules? #134
Comments
I believe I'm also currently running into this issue. We have recently split some of our code base into npm packages. When using |
I believe the debugger source maps that are generated (or loaded) are not correct when I run "npm start". I'm running the chromium-browser v61.0, react-scripts-ts v2.15.1, node v8.2.1. I'm using vscode but not trying to connect/debug "from vscode", I'm simply using the normal chrome javascript debugger. I've done create-react-app's and they have worked OK in this configuration so my belief is that I would want to change the type of source map generated. Any suggestions on the files to change to do this are appreciated. |
I am facing the same issues, my packages linked using |
I am developing a module to be used with react, and I've bootstrapped my example project with
react-scripts-ts
.I found that in order to source map the referenced module from the example, currently I can't help but ejecting the project, since the source maps target is hardwired to be the source directory of the project only (https://github.com/wmonk/create-react-app-typescript/blob/master/packages/react-scripts/config/webpack.config.dev.js#L151). That may suit for the most cases, but there are cases where it would be more beneficial to have source maps from node modules ready at hand for debugging purpose.
Would it make sense to provide a way to customize what gets to have source map loaded?
The text was updated successfully, but these errors were encountered: