Sourcemaps when importing via `output`


I tweeted this the other day because someone asked about it on Slack:

If you have a project that imports from output (generated by building your project e.g. pulp build), then you can also get sourcemaps fairly automatically if you run the sourcemaps codegen, e.g. pulp build -- -g sourcemaps.

If nothing else is mangling sourcemaps in your application, then tools like Parcel should be able to hook up the sourcemaps and make them available for you:

I’m not entirely sure how one should do this with webpack and how it can be correctly done with node inspector, so any examples would also be nice to have available.

The project I used for my example is here: