Add build feature flag to enable hydration warnings in production
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 54.4k
- Forks
- 9.2k
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 140
Description
What problem does this feature solve?
I'm currently debugging a hydration bug in my code that only appears in my production builds (a specific node gets duplicated whenever NODE_ENV=production). However since hydration warnings are disabled in production, it's very difficult/tedious to manually find and add proper breakpoints.
What does the proposed API look like?
A build time variable like __VUE_PROD_HYDRATION_WARNINGS__ that allows hydration warnings to show up in production builds would be much appreciated
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files or tests are named. Start by tracing how production builds disable hydration warnings and how existing build-time feature flags are defined; done means the proposed flag can enable those warnings in production builds without changing the default behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100