Took advantage of WebWorkers' independent scope to intercept console methods away from the page context. This way, code can be evaluated individually. I also used the Proxy class to intercept all calls to all console methods.
📰 Article: https://www.bayanbennett.com/posts/mo...
🗃️ Repository: https://github.com/BayanBennett/refer...
🌐 Site: https://reference.bayanbennett.com/
CHAPTERS #
0:00 Intro
0:30 Result
0:40 Problem
0:52 Looking at Workers
1:28 NextJS v10 ➕ Webpack v5
2:04 Communicating with the Worker
2:29 Proxy Class in JS
4:07 Proxy Implementation
5:48 Console Message Collection
6:19 Outro
---
#NextJS #WebWorkers #TypeScript