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

vue-devtools httpd shoud answer with `import()` friendly header+body #2098

Open aurium opened 1 year ago

aurium commented 1 year ago

We can run npx vue-devtools and load the client with <script src="http://localhost:8098"></script> in the app index.html.

This loading method difficults building configuration to enable/disable debuging features.

It would be nice if we could load devtools client with import("http://localhost:8098"), so it will be easy to enable/disable it.

aurium commented 1 year ago

import('@vue/devtools') also wont work because it is not a ESM build. However, loading from local service (as pointed above) is also better to reduce the build size.