Source Maps in node_modules package
Created by: JeremyGrieshop
I haven't had much luck being able to debug/set breakpoints in source compiled with create-scripts and thought my use case may be somewhat unique, so I wanted to ask it here. If it's something I should take up with VSCode, I will, but I needed to start somewhere.
My setup is VS Code with an app created by create-react-app. I can debug it just fine, and I hit my breakpoints, as expected, so source maps are indeed working. However, I recently moved some of our components out into its own libraries, so they can be published separately and used by multiple apps. So, now they look like (I've simplified the example):
app/
package.json
src/
App.js
libA/
components/
package.json
src/
componentA.js
lib/
componentA.js
componentA.js.map
Now, I can only set breakpoints in lib/componentA.js instead of src/componentA.js (pre-compiled source). Is this something that I should be able to get working?
Any direction would be helpful. Thanks in advance!
Edit: perhaps it's related to https://github.com/facebook/create-react-app/pull/2355 ?