mirror of https://github.com/vuejs/core.git
fix(runtime-vapor): remove access globalProperties warning (#13609)
This commit is contained in:
parent
b9fb79a1fd
commit
fca74b00a8
|
@ -341,7 +341,7 @@ describe('api: createVaporApp', () => {
|
|||
})
|
||||
})
|
||||
|
||||
test('config.globalProperty', () => {
|
||||
test.todo('config.globalProperty', () => {
|
||||
const { app } = define({
|
||||
setup() {
|
||||
return []
|
||||
|
@ -351,7 +351,7 @@ describe('api: createVaporApp', () => {
|
|||
app.config.globalProperties.msg = 'hello world'
|
||||
} catch (e) {}
|
||||
expect(
|
||||
`app.config.globalProperties is not supported in vapor mode`,
|
||||
`app.config.globalProperties is not supported in vapor mode components`,
|
||||
).toHaveBeenWarned()
|
||||
})
|
||||
})
|
||||
|
|
|
@ -88,18 +88,6 @@ function prepareApp() {
|
|||
}
|
||||
|
||||
function postPrepareApp(app: App) {
|
||||
if (__DEV__) {
|
||||
app.config.globalProperties = new Proxy(
|
||||
{},
|
||||
{
|
||||
set() {
|
||||
warn(`app.config.globalProperties is not supported in vapor mode.`)
|
||||
return false
|
||||
},
|
||||
},
|
||||
)
|
||||
}
|
||||
|
||||
app.vapor = true
|
||||
const mount = app.mount
|
||||
app.mount = (container, ...args: any[]) => {
|
||||
|
|
Loading…
Reference in New Issue