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

Add source map building in webpack and expose them to chrome #9

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

adhurjaty
Copy link
Collaborator

@adhurjaty adhurjaty commented Nov 7, 2024

Add source maps to the build folder to make debugging easier. Chrome dev tools looks like this now:

Screenshot 2024-11-07 at 11 21 52 AM

"web_accessible_resources": [
{
"resources": ["dist/src/*.js.map"],
"matches": ["<all_urls>"]
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Excessively permissive, but shouldn't be a big problem for now. We should follow up at some point to lock this down a bit more

@Melvillian
Copy link
Collaborator

I tested locally and it works for me. Note that I thought it wasn't working at first because I didn't see the sourcemap in Chrome Dev Tools > Sources > Content Scripts, but then I realized it's contained under the directory browser-extension/.

Also, I recognize we're moving fast and ignoring most security concerns, so I made this issue to remind us later to do a security review: #13

@Melvillian Melvillian merged commit ddf44bb into main Nov 13, 2024
@adhurjaty adhurjaty deleted the add-source-maps branch November 13, 2024 04:24
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