Commit 4f834e3
committed
Add a comment to run source map symbolication on the main thread for debugging
It proved somewhat difficult when I had the debug the source map
symbolication worker on the worker thread. It makes things a lot easier
when it runs on the main thread instead. I tried adding a const flag for
this with its proper function, but esbuild wasn't properly removing the
dead code, so it was inflating the bundle a lot when this function was
there even if it was unused.
I tried also converting that into an async import, which extracted the
symbolication into a different bundle, but it was still outputting the
extra bundle even if it was false constant value. So, I decided to
include it as a commented out documentation in case we need it in the
future. It's not the best, but it should still help us when we need to
debug the worker in the future.1 parent 4bcf2a3 commit 4f834e3
1 file changed
Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
79 | 102 | | |
80 | 103 | | |
81 | 104 | | |
| |||
0 commit comments