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
feat: improve production debugging dx #7463
Conversation
This is so cool, hope it'll land on time for 2.13.x 👏 |
Codecov Report
@@ Coverage Diff @@
## dev #7463 +/- ##
==========================================
- Coverage 70.28% 70.22% -0.06%
==========================================
Files 88 88
Lines 3708 3714 +6
Branches 1011 1008 -3
==========================================
+ Hits 2606 2608 +2
- Misses 894 898 +4
Partials 208 208
Continue to review full report at Codecov.
|
@pi0 Is there a measurable difference in parsing/loading server.js if not minimized? When you run a node server then that shouldn't matter much, but if you are using a lambda then that server.js could need to be parsed on almost every request. |
@pimlie Agree however we are not currently officially supporting serverless target. Builders/Packers may utilize a minimizer to reduce size. I added |
As long as its still configurable I am happy, thanks ;) |
@pi0 Is there any way to disable this? My routes are deep and it seems with this change file urls get even deeper I think I am running into Here is my file tree:
Examples of long urls that nuxt generated but have been truncated:
Nuxt is unable to load last url in the example, when I try to access it it responds with What do you think? |
Hi @OrkhanAlikhanov. It had to be fixed with #7603 but seems build: {
filenames: {
chunk: '[contenthash:7].js'
}
} |
Thanks for the quick response. Actually #7603 made the bug apparent. Before it, the filename had I still wonder if that much nestedness is a bug or a feature. The url contains |
@OrkhanAlikhanov Indeed it is not nice a file name when concatenation happens. Using |
I digged in the documention but dont see what the optimal setting for source mapping would be. I'm attaching a debugger to 9229 but I don't get any breakpoints to bind in neither VS debugger nor Chrome dev tools Node inspector .. |
Types of changes
Description
Resolve SSR stack trace paths
(outputs modified for readability. consola has a fancy logger that does some similar magic but only for display)
Old:
New:
Make chunk names easy to debug
Old:
New:
Also, server.js is no longer minimized by terser. This helps making build little faster and also having correct sourcemap lines.
Checklist: