Added sourcesContent key to admin sourcemaps (#18855)

no issue

- The sourcemaps currently generated by the admin build do not include
the `sourcesContent` key
- This commit is to experiment with this change, in particular to see if
it improves the stacktraces available in Sentry from errors in the admin
app
- Currently the stacktraces in admin show the minified code — hopefully
this change will make the stacktraces show the original source code to
make it easier to debug issues from within Sentry
- Might thoroughly break the sourcemaps, in which case I will revert this
This commit is contained in:
Chris Raible 2023-11-02 15:18:30 -07:00 committed by GitHub
parent 2db24c9282
commit f987ce3523
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -205,6 +205,7 @@ module.exports = function (defaults) {
autoImport: { autoImport: {
publicAssetURL, publicAssetURL,
webpack: { webpack: {
devtool: 'source-map',
resolve: { resolve: {
fallback: { fallback: {
util: require.resolve('util'), util: require.resolve('util'),