time-less-ness / trust-assembly

For SomeGuy's Trust Assembly Project
5 stars 6 forks source link

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

Closed adhurjaty closed 1 week ago

adhurjaty commented 2 weeks ago

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

Melvillian commented 1 week ago

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: https://github.com/time-less-ness/trust-assembly/issues/13