vuejs / vuejs/core

Add build feature flag to enable hydration warnings in production

Open
#3,949 1 comment 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

:sparkles: feature request scope: ssr
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.