1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/development
Mark Stacey 1675c047c7 Fix Sentry sourcemaps (#11051)
The method used for uploading release artifacts to Sentry has been
updated to allow `sentry-cli` to associate our minified bundles with
the corresponding source map file. This should help Sentry display rich
stack traces.

Previously Sentry had used the `sourceMappingURL` to associate source
maps with bundles, but we recently removed this in #10695. The hope is
that this change to the upload process will ensure the mapping works
correctly without the `sourceMappingURL` comment.

The `upload_bundles` function was removed because the later
`upload_sourcemaps` function actually uploaded both the bundles and
source maps.

The `--rewrite` flag was added to enable a newer "rewrite" feature of
the Sentry CLI that they recommend using [1]. This rewrite is where
they associate source maps with bundles.

The `url-prefix` has been updated to be `metamask` rather than
`sourcemaps`. I don't think `sourcemaps` was ever the correct prefix.
We normalize our errors to have the path `metamask/` before sending any
reports to Sentry.

[1]: https://docs.sentry.io/product/cli/releases/#sentry-cli-sourcemaps
2021-05-11 14:11:15 -07:00
..
build Version v9.5.0 RC (#10944) 2021-05-05 11:08:59 -07:00
lib Version v9.5.0 RC (#10944) 2021-05-05 11:08:59 -07:00
announcer.js
auto-changelog.js Version v9.5.0 RC (#10944) 2021-05-05 11:08:59 -07:00
chromereload.js Version v9.5.0 RC (#10944) 2021-05-05 11:08:59 -07:00
create-static-server.js
empty.js Version v9.5.0 RC (#10944) 2021-05-05 11:08:59 -07:00
generate-migration.sh Version v9.5.0 RC (#10944) 2021-05-05 11:08:59 -07:00
gource-viz.sh
metamaskbot-build-announce.js Version v9.5.0 RC (#10944) 2021-05-05 11:08:59 -07:00
missing-locale-strings.js
mock-3box.js
mock-segment.js
README.md
require-react-devtools.js
run-ganache.sh
sentry-publish.js
sentry-upload-artifacts.sh Fix Sentry sourcemaps (#11051) 2021-05-11 14:11:15 -07:00
shellcheck.sh
show-deps-install-scripts.js
source-map-explorer.sh Version v9.5.0 RC (#10944) 2021-05-05 11:08:59 -07:00
sourcemap-validator.js
static-server.js
verify-locale-strings.js

Development

Several files which are needed for developing on(!) MetaMask.

Usually each files contains information about its scope / usage.