@mcpc-tech/unplugin-dev-inspector-mcp 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +16 -14
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -71,23 +71,25 @@ pnpm add -D @mcpc-tech/unplugin-dev-inspector-mcp
71
71
  yarn add -D @mcpc-tech/unplugin-dev-inspector-mcp
72
72
  ```
73
73
 
74
- ```typescript
75
- // vite.config.ts
76
- import DevInspector from '@mcpc-tech/unplugin-dev-inspector-mcp';
77
- import react from '@vitejs/plugin-react'; // or vue()
74
+ Add DevInspector to your Vite config:
78
75
 
79
- export default {
80
- plugins: [
81
- DevInspector.vite({
82
- enabled: true,
83
- enableMcp: true,
84
- }),
85
- react(), // or vue()
86
- ],
87
- };
76
+ ```diff
77
+ // vite.config.ts
78
+ +import DevInspector from '@mcpc-tech/unplugin-dev-inspector-mcp';
79
+ import react from '@vitejs/plugin-react'; // or vue()
80
+
81
+ export default {
82
+ plugins: [
83
+ + DevInspector.vite({
84
+ + enabled: true,
85
+ + enableMcp: true,
86
+ + }),
87
+ react(), // or vue()
88
+ ],
89
+ };
88
90
  ```
89
91
 
90
- > 💡 **Troubleshooting:** If source locations show `unknown:0:0`, try moving `DevInspector.vite()` **before** framework plugins like `react()`, `vue()`, or `preact()`. This ensures source location injection happens before JSX transformation.
92
+ > ⚠️ **Plugin order matters:** Place `DevInspector.vite()` **before** `react()`, `vue()`, or `preact()`. Otherwise source locations may show `unknown:0:0`.
91
93
 
92
94
  Currently supports **Vite**. Webpack, Rollup, esbuild, and Rspack support coming soon.
93
95
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcpc-tech/unplugin-dev-inspector-mcp",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "Universal dev inspector plugin for React/Vue - inspect component sources and API calls in any bundler",
5
5
  "type": "module",
6
6
  "license": "MIT",