fix(kit): deep assign app to publicRuntimeConfig (#1094)

This commit is contained in:
Daniel Roe 2021-10-18 10:07:09 +01:00 committed by GitHub
parent f974425cc4
commit 571bf94d39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,6 +3,7 @@ import env from 'std-env'
import createRequire from 'create-require' import createRequire from 'create-require'
import { pascalCase } from 'scule' import { pascalCase } from 'scule'
import jiti from 'jiti' import jiti from 'jiti'
import defu from 'defu'
export default { export default {
/** /**
@ -697,8 +698,6 @@ export default {
* @version 3 * @version 3
*/ */
publicRuntimeConfig: { publicRuntimeConfig: {
app: { $resolve: (val, get) => defu(val, { app: get('app') })
$resolve: (val, get) => ({ ...get('app'), ...(val || {}) })
}
} }
} }