vuejs / devtools-v6

⚙️ Browser devtools extension for debugging Vue.js applications.
https://devtools-v6.vuejs.org/
MIT License
24.68k stars 4.14k forks source link

fix(vue3): Show the imported component setup state by using exposed in production #2091

Closed Azurewarth0920 closed 9 months ago

Azurewarth0920 commented 1 year ago

Description

Fix: #2061

Additional context

As the reason: https://github.com/vuejs/core/issues/4866#issuecomment-1128313856

The setupState is not exposed in production mode, so we cannot inspect the internal state of built library described in #2061

Inspired by https://github.com/vuejs/core/issues/8515#issuecomment-1581906384, we can use exposed field to inspect the state.


What is the purpose of this pull request?

Before submitting the PR, please make sure you do the following