You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+25-8Lines changed: 25 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ A modern, low-level React 19 inspector for Vite/Rolldown dev servers.
4
4
5
5
This repo contains:
6
6
7
-
-`packages/react19-dev-inspector` — the npm package (`vite-react-inspector`)
7
+
-`packages/vite-react-inspector` — source for the `vite-react-inspector` npm package
8
8
-`examples/basic-react19` — a Vite + React 19 example app
9
9
10
10
The package is intentionally dev-only. It injects a tiny browser runtime into Vite dev pages, lets you toggle an inspector with a shortcut, highlights React-owned DOM nodes, resolves the selected component/source location through React 19 dev fiber stacks and Vite source maps, and opens your editor from a local dev-server endpoint.
@@ -30,27 +30,44 @@ npm run dev:example
30
30
31
31
Open the example app, press the shortcut, hover an element, and click a component/source candidate to open it in your editor.
32
32
33
-
## Install in another project (from GitHub)
33
+
## Install
34
34
35
-
The published package name is `vite-react-inspector`, but the library lives under `packages/react19-dev-inspector` in this monorepo. Use a **path** on the git URL so the package manager installs that folder.
Registry installs include built `dist/`. Git installs run `prepare` to build because `dist` is not in git.
60
+
61
+
After install, use the same `vite-react-inspector/vite` import as below.
62
+
63
+
**pnpm v10+:** If install fails with `ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED`, allow the package to run scripts. In `pnpm-workspace.yaml` at the project (or monorepo) root:
64
+
65
+
```yaml
66
+
onlyBuiltDependencies:
67
+
- vite-react-inspector
68
+
```
52
69
53
-
After install, use the same `vite-react-inspector/vite` import as below. The package `prepare` script builds `dist/` on install because `dist` is not committed.
0 commit comments