-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vue devtools doesn't show setup state for a component imported from a Vite built Vue library #2061
Comments
It is the limitation on the production build. The devtool relies on the property |
Can we tweak the build to produce a build conditional on |
Nope, most of the libraries are pre-built, so when importing the libraries they are already in "production mode". Then I found another approach to solve this and pulled a request. |
I'm talking about tweaking the build process of my own library to support such a mode. As a flag to vite plugin for vue or something. |
At this time, due to the limitation of the compiler. The answer is NO. |
So I guess this is a feature request to the compiler. I'll figure out what's the right repo to request that |
Somehow I think it is the mis-implementation on devtool. It will be fixed by https://github.com/vuejs/devtools/pull/2091 |
So this might also tie into vitejs/vite-plugin-vue#36 which was about the |
Any news on this? I still have this problem in 6.5.1. It seems the merge request never got accepted. |
Vue devtools version
6.5.0
Link to minimal reproduction
https://github.com/segevfiner/vite-devtools-lib-issue
Steps to reproduce & screenshots
pnpm build
inpackages/foo
pnpm dev
inapps/bar
HelloWorld
component.If you switch the import in
apps/bar/src/App.vue
to import theHelloWorld
component from./components/HelloWorld.vue
instead, the setup state does show in the Vue devtools.What is expected?
It shows setup state for the component imported from the
foo
library.What is actually happening?
It doesn't.
System Info
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: