-
-
Notifications
You must be signed in to change notification settings - Fork 49
Generate release source maps #817
Comments
Hi @edusperoni, Sorry for the late response and thanks for your UglifyJs source maps contribution! We've merged it and it should be available in Regarding the source maps output path, you are missing that the We are still wondering about the best way of exposing this through the CLI API. We could automatically generate |
Using We still have the worker problem, but that can be sorted out later. I find it ambiguous for
Using external source maps is basically useless for debugging in NS, unless you bundle them with the code, which gives the same effect as the current default (inline), so I don't see any advantage in just enabling My thinking behind this is that most developers would rather just have a single flag to enable it, like |
Thanks for the feedback! I've opened a pull request with Regarding the issue with your worker names, it seems that it is caused by the provided |
I am confused by The resulting hash does not match the original file.
I expect main map file to be named |
Related issue scinos/webpack-plugin-hash-output#21 (comment) |
Is your feature request related to a problem? Please describe.
Currently, when we build an app with
--release
no sourcemaps are generated. While sourcemaps should never be in a release build, they are useful for debugging crashes, which look like this in tools like crashlytics:Describe the solution you'd like
A way to generate source maps in a directory like
project/sourceMaps
that can be saved along with the release apk/ipa for when bugs in that release occur.Describe alternatives you've considered
I've discovered #816 when testing this out. I managed to generate the sourcemaps in a separate directory by setting
sourceMapFilename
and using
devtool: "hidden-source-map",
This generated every sourceMap needed to
platforms\android\app\src\main\assets\app\sourceMap\
, but it was also bundled in the app. Maybe this could be handled by a after-prepare hook?My worker's sourcemap was generated to
sourceMap/main.map
, which seems wrong, and may be an issue when multiple workers are being used.Additional context
I think we could have a flag similar to
--env.report
which generates the release source maps to a directory inside the project root.I'm willing to help implement this feature once we discuss the direction we should be going.
The text was updated successfully, but these errors were encountered: