Uh oh!
There was an error while loading. Please reload this page.
feat(nuxt): add hook debug mode - #7690
Conversation
✅ Deploy Preview for nuxt3-docs ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
pi0
commented
Sep 20, 2022
This is a nice improvement but what do you think if we directly add |
I like the idea. What do you think about enabling a custom handler as well (or 'presets')? I think it's nicer to have a browser API with collapsed/grouped logs and also allow logging all args, which would be unfeasibly verbose in the terminal. |
pi0
commented
Sep 21, 2022
Makes sense to inspect only for browser. Moved to #unjs/hookable#50. |
danielroe
commented
Sep 27, 2022
Are we waiting for anything in unjs/hookable#51? |
pi0
commented
Oct 13, 2022
hookable@5.4.0 released |
b28e5b3 to
5fa1f91CompareUh oh!
There was an error while loading. Please reload this page.
I had some other changes I was going to make when hookable was released. Will check later. edit - all good |
🔗 Linked issue
resolvesnuxt/nuxt#13509
❓ Type of change
📚 Description
This PR adds support for
debug: truein your nuxt config (disabled by default). At the moment, it prints out hook names and timings on the server, and logs hook arguments as well in the browser.Example output
Server
Client
📝 Checklist