Skip to content

Silence ESM bundler warning for Vue 3 #3397

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

krokyze
Copy link

@krokyze krokyze commented Dec 19, 2024

As stated in the Vue documentation: https://vuejs.org/api/compile-time-flags#webpack

__VUE_PROD_HYDRATION_MISMATCH_DETAILS__ should be set to false by default, otherwise, this warning pops up:

Feature flag VUE_PROD_HYDRATION_MISMATCH_DETAILS is not explicitly defined. You are running the esm-bundler build of Vue, which expects these compile-time feature flags to be globally injected via the bundler config in order to get better tree-shaking in the production bundle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant