Skip to content

Fix issue with source maps#156

Merged
BelfordZ merged 9 commits intomainfrom
fix-source-maps-bug
Nov 8, 2023
Merged

Fix issue with source maps#156
BelfordZ merged 9 commits intomainfrom
fix-source-maps-bug

Conversation

@BelfordZ
Copy link
Copy Markdown
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
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
BelfordZ and others added 3 commits November 8, 2023 11:32
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
Copy link
Copy Markdown
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
Copy Markdown
Contributor

@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
@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