mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 11:55:03 +03:00
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:
parent
2db24c9282
commit
f987ce3523
@ -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'),
|
||||||
|
Loading…
Reference in New Issue
Block a user