Replies: 4 comments 2 replies
-
Thanks for creating the plugin and reaching out @bmeurer! Personally, I think we should have this in vite core directly. Let me forward this discussion to the rest of the team to see what others think. |
Beta Was this translation helpful? Give feedback.
-
Is this planned to only be a Chrome-specific feature? Are there plans to also support more information in I think I'd prefer in a separate plugin if that's the case so Vite is agnostic of browser support, and it'll be easier for y'all to add new features or change the API in the Vite plugin as it's in your control. Plus the possibility to abstract the logic for other bundlers as well if it's in a central repository. |
Beta Was this translation helpful? Give feedback.
-
just dumping some thoughts here:
|
Beta Was this translation helpful? Give feedback.
-
regarding uuid and vite cache. If you need that id to be stable, it would have to be stored elsewhere, node_modules/.vite is regularly deleted by users or during Another option could be to use a hash of a path, similar to debug-id. |
Beta Was this translation helpful? Give feedback.
-
On the Chrome DevTools side we've been working on a new feature called Automatic Workspace folders, which improves the ergonomics and discoverability of the Workspace feature.
The feature basically allows the devserver to communicate information to the Chrome DevTools via a
devtools.json
file, currently limited to workspace folder (and a UUID for security reasons).We have a proof-of-concept vite plugin at bmeurer/vite-plugin-devtools-json and support for this in ToT
angular-cli
(PR).@patak-dev and @sapphi-red (and potentially others): We'd like to hear your thoughts whether it would make sense to put this directly into vite instead of asking developers to install a third party plugin or rely on meta frameworks like Angular and Next.js to set this up for them?
I'm happy to send a PR that basically merges the core logic from the plugin (it's really just the
/.well-known/appspecific/com.chrome.devtools.json
handling and the caching of the UUID).cc @natorion
References:
Beta Was this translation helpful? Give feedback.
All reactions