Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue with source maps #156

Merged
merged 9 commits into from
Nov 8, 2023
Merged

Fix issue with source maps #156

merged 9 commits into from
Nov 8, 2023

Conversation

BelfordZ
Copy link
Contributor

@BelfordZ BelfordZ commented Nov 8, 2023

The sourcemaps that are generated from the error.ts code are wrong. They seem to be having trouble with the @ts-ignore comment and some combination of the ternary statement. Unrolling the ternary into an if...else seems to resolve the issue, thoough a longer term fix would be to bump the tsconfig target field to ES2022 and remove the @ts-ignore

see https://app.circleci.com/pipelines/github/MetaMask/metamask-extension/62187/workflows/98ccf0cb-168e-47d3-8d7e-b5e10edc129b/jobs/1964980 for more details

@BelfordZ BelfordZ requested a review from a team as a code owner November 8, 2023 18:52
src/errors.ts Outdated Show resolved Hide resolved
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
src/errors.ts Outdated Show resolved Hide resolved
BelfordZ and others added 3 commits November 8, 2023 11:32
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
src/errors.test.ts Show resolved Hide resolved
src/errors.ts Outdated Show resolved Hide resolved
Copy link
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link

@cryptodev-2s cryptodev-2s left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@BelfordZ BelfordZ merged commit b15bc03 into main Nov 8, 2023
17 checks passed
@BelfordZ BelfordZ deleted the fix-source-maps-bug branch November 8, 2023 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants