I am trying to create source maps for real world halogen, https://github.com/thomashoneyman/purescript-halogen-realworld. If I use “spago bundle-app --source-maps --main Main --to dist/app.js && parcel build assets/index.html” I get a lot of error messages like:
"Could not load source file “output/Data.Function.Uncurried/index.js” in source map of “…/dist/app.js” .
I have looked at the documentation for spago and there is something written regarding creating source maps see here https://github.com/purescript/spago#get-source-maps-for-my-project. I dont understand step 2:
“source output (like var someModule = require('./output/Whatever/index.js'); ) and use something like parcel , to avoid mangling/destroying the sourcemaps”.
Hi, thank you for your answer.
Setting the breakpoints inside app.js works for me too.
I thought there might be a possibility to create source maps like in webpack for javascript. So if you activate the source-maps inside webpack it is possible to debug in the various .js files instead of debugging the one bundled js file.