mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-16 13:48:13 +00:00
fix(nuxt): add __VUE_PROD_HYDRATION_MISMATCH_DETAILS__
(#24836)
This commit is contained in:
parent
a073bec6b1
commit
f5a44fb20a
@ -162,6 +162,7 @@ const excludedVueHelpers = [
|
||||
'Transition',
|
||||
'TransitionGroup',
|
||||
'VueElement',
|
||||
'ErrorTypeStrings',
|
||||
'createApp',
|
||||
'createSSRApp',
|
||||
'defineCustomElement',
|
||||
|
@ -21,10 +21,11 @@ export default defineUntypedSchema({
|
||||
},
|
||||
define: {
|
||||
$resolve: async (val, get) => {
|
||||
const dev = await get('dev')
|
||||
const [isDev, isDebug] = await Promise.all([get('dev'), get('debug')])
|
||||
return {
|
||||
'process.dev': dev,
|
||||
'import.meta.dev': dev,
|
||||
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__: isDebug,
|
||||
'process.dev': isDev,
|
||||
'import.meta.dev': isDev,
|
||||
'process.test': isTest,
|
||||
'import.meta.test': isTest,
|
||||
...val
|
||||
|
Loading…
Reference in New Issue
Block a user