Open breathe opened 9 years ago
I'm running into the same issue as above. Is there anything special that needs to be done to support inline maps?
I think the issue here is your webpack build. If you have a look at the generated file, you'll see that webpack generates eval
calls for each of you modules. That way it probably bypasses source-map-support
, which hooks into the NodeJS require
mechanism to extract the source maps.
You can configure webpack to generate sourcemaps differently with the devtool
option:
https://webpack.github.io/docs/configuration.html#devtool
I'm just guessing here, but maybe it'll work if you try devtool: "inline-source-map"
.
Does node-source-map-support support inline sourcemaps encoded into data url's?
I'm writing ansible modules in javascript using webpack to package the javascript together into a standalone file. Ansible module's can be written in any language but must be contained in a single file -- hence the usage of webpack to run code on node ... It sounds strange perhaps, but its actually perfect for my usage and works well -- the only annoying thing is I haven't been able to get source-map to work for stack traces ...
Here's a simple example:
Input source:
And here's a gist showing what the webpack compiled version of the above src looks like ...
https://gist.githubusercontent.com/breathe/debf645ae49e5bd66768/raw/bab77313c1fde689645ff40e3b09fb768a3fb8b9/debug-sourcemap
Running the code in the gist above yields this output ... Any ideas?