Install Locator for Vue

Install Locator on Vue codebase.

Vue support is experimental:
  • Works only with Vue 3
  • Goes only to file, not to precise line and number
  • SSR rendered component may not be recognized
A

Browser extension (option A)

Easiest way to start with Locator is to install a Browser Extension
You can get extension for Chrome, Edge, Brave, Opera, Firefox
B

Library (option B)

If you would like to install Locator to your project, so all team members can use it. You can install it as a library.
npm install -D @locator/runtime
Add this to main.js:
import setupLocatorUI from "@locator/runtime";

if (process.env.NODE_ENV === "development") {
  setupLocatorUI({
    adapter: "vue"
  });
}