Install Locator on SolidJS codebase.
npm install -D @locator/babel-jsx
Add this to your vite.config.jsimport { defineConfig } from "vite";
import solidPlugin from "vite-plugin-solid";
export default defineConfig({
plugins: [
solidPlugin({
babel: {
plugins: [
[
"@locator/babel-jsx/dist",
{
env: "development",
},
],
],
},
}),
],
});
npm install -D @locator/runtime
import setupLocatorUI from "@locator/runtime";
if (process.env.NODE_ENV === "development") {
setupLocatorUI();
}