Since just upgrading vue.js to version 3.4.4 I now get the following warning in the console of my browser:
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.
So I read that it's some new flag they've introduced.
EDIT:
I'm using a vue.config.js file in my project. Is this where the flag should be added? It currently looks like this:
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
transpileDependencies: true
})
My question: "Where do I set this flag"? I find a lot of info about that I should define this flag but no info on "where" I should define it...
@vitejs/plugin-vueto v5 or above. You don't need to define it manually if you're not using it.@vite/plugin-vuev5.2.1