New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NodeJS source-map using source-map-support #397
Comments
Btw. this can easily be done by adding the following plugin to server config (since it needs to be included in the server entry point):
|
Thanks for reporting this @bkniffler. Can you give us an example of what you're fixing here. A pull request would be welcome too. |
If there is an error on the server side, the stack-traces will refer to the compiled main.js file since nodejs is not able to pickup the source map, hence refer the original code. https://www.npmjs.com/package/source-map-support is fixing this. |
The BannerPlugin would put it at the top of every file. Is that what we need or do we just need it at the top of the server entry file? ( |
@bkniffler - I had to use the new one-argument options method and define
|
Also, I'm testing this against errors in our internal app and it's not really adding anything. I'm adding |
@bkniffler - Nevermind. I forgot that we were using |
Hey,
currently source-maps of server main.js are not being used by nodejs. Maybe you guys could try and use https://www.npmjs.com/package/source-map-support to fix that?
The text was updated successfully, but these errors were encountered: