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

Use inline source maps in development #6754

Merged
merged 1 commit into from
Jun 26, 2019

Conversation

Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Jun 26, 2019

There is currently a bug in chrome that prevents reading source maps from a local file. This was preventing Chrome DevTools from using our JavaScript source maps, where were saved as .map files. To work around this problem the source maps are now generated inline, which seems to work fine.

The only other browser I tested this with was Firefox, which works both before and after this change.

@Gudahtt
Copy link
Member Author

Gudahtt commented Jun 26, 2019

Ah, didn't realize this would affect the dist build as well. I'll have to update this to use inline source maps for development, but leave the dist build unaffected.

@Gudahtt Gudahtt force-pushed the inline-source-maps branch from 37db1f4 to 76e31cd Compare June 26, 2019 15:47
There is currently a bug in chrome that prevents reading source maps
from a local file [0]. This was preventing Chrome DevTools from using
our JavaScript source maps, where were saved as `.map` files. To work
around this problem the source maps are now generated inline, which
seems to work fine.

The only other browser I tested this with was Firefox, which works both
before and after this change.

[0]: https://bugs.chromium.org/p/chromium/issues/detail?id=931675
@Gudahtt Gudahtt force-pushed the inline-source-maps branch from 76e31cd to 374171b Compare June 26, 2019 15:47
@Gudahtt Gudahtt changed the title Switch to using inline source maps Use inline source maps in development Jun 26, 2019
Copy link
Contributor

@whymarrh whymarrh left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for diagnosing this!

@Gudahtt Gudahtt merged commit 3f8c912 into MetaMask:develop Jun 26, 2019
@Gudahtt Gudahtt deleted the inline-source-maps branch July 5, 2019 01:02
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.

2 participants