-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
souce-map in production sentry server #5976
-
I wanna use sentry with source-map with @sentry/webpack-plugin, for generate source-map I was using mode devtool 'hidden-source-map', but my bundle increased by 5 kb and documentation define that "no reference. Possible choice when using SourceMap only for error reporting purposes." I wanna generate bundle like production(e.g. devtool: false) and contains source-map in sentry server. How it possible and show more examples?
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment
-
Usually sourcemaps shouldn't contribute to bundle-size, unless they're inlined (which you're not doing with the hidden-source-map option). "no-reference" just means that there will be no link to the source map at the bottom of the JS files. I think in this situation you want to generate the sourcemaps, upload them to Sentry, and delete them afterwards. Unfortunately we don't have an example yet for this but if you figure it out feel free to contribute to our docs!
Beta Was this translation helpful? Give feedback.