@inspecto-dev/plugin 0.2.0-alpha.0 → 0.2.0-alpha.2

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 (44) hide show
  1. package/README.md +19 -0
  2. package/dist/index.cjs +431 -102
  3. package/dist/index.cjs.map +1 -1
  4. package/dist/index.d.cts +1 -1
  5. package/dist/index.d.ts +1 -1
  6. package/dist/index.js +436 -103
  7. package/dist/index.js.map +1 -1
  8. package/dist/legacy/rspack/index.cjs +402 -98
  9. package/dist/legacy/rspack/index.cjs.map +1 -1
  10. package/dist/legacy/rspack/index.js +407 -99
  11. package/dist/legacy/rspack/index.js.map +1 -1
  12. package/dist/legacy/rspack/loader.cjs +8 -1
  13. package/dist/legacy/rspack/loader.cjs.map +1 -1
  14. package/dist/legacy/rspack/loader.js +8 -1
  15. package/dist/legacy/rspack/loader.js.map +1 -1
  16. package/dist/legacy/webpack4/index.cjs +977 -0
  17. package/dist/legacy/webpack4/index.cjs.map +1 -0
  18. package/dist/legacy/webpack4/index.d.cts +8 -0
  19. package/dist/legacy/webpack4/index.d.ts +8 -0
  20. package/dist/legacy/webpack4/index.js +953 -0
  21. package/dist/legacy/webpack4/index.js.map +1 -0
  22. package/dist/legacy/webpack4/loader.cjs +347 -0
  23. package/dist/legacy/webpack4/loader.cjs.map +1 -0
  24. package/dist/legacy/webpack4/loader.d.cts +3 -0
  25. package/dist/legacy/webpack4/loader.d.ts +3 -0
  26. package/dist/legacy/webpack4/loader.js +314 -0
  27. package/dist/legacy/webpack4/loader.js.map +1 -0
  28. package/dist/rollup.cjs +431 -102
  29. package/dist/rollup.cjs.map +1 -1
  30. package/dist/rollup.js +436 -103
  31. package/dist/rollup.js.map +1 -1
  32. package/dist/rspack.cjs +431 -102
  33. package/dist/rspack.cjs.map +1 -1
  34. package/dist/rspack.js +436 -103
  35. package/dist/rspack.js.map +1 -1
  36. package/dist/vite.cjs +431 -102
  37. package/dist/vite.cjs.map +1 -1
  38. package/dist/vite.js +436 -103
  39. package/dist/vite.js.map +1 -1
  40. package/dist/webpack.cjs +431 -102
  41. package/dist/webpack.cjs.map +1 -1
  42. package/dist/webpack.js +436 -103
  43. package/dist/webpack.js.map +1 -1
  44. package/package.json +19 -3
package/README.md CHANGED
@@ -6,6 +6,25 @@
6
6
 
7
7
  Powered by `unplugin`, this package supports Vite, Webpack, Rspack, and Rollup. It handles AST manipulation at build-time to inject source location metadata into DOM elements, allowing the browser client to trace elements back to their original source code.
8
8
 
9
+ ## Supported Environment
10
+
11
+ ### UI Frameworks
12
+
13
+ | Framework | Supported Versions | Notes |
14
+ | :-------- | :----------------- | :---------------------------------------------------------------- |
15
+ | React | >= 16.8.0 | Supported via JSX/TSX AST transformation. |
16
+ | Vue | >= 3.0.0 | Supported via Vue SFC compiler. Vue 2 is currently not supported. |
17
+
18
+ ### Build Tools
19
+
20
+ | Build Tool | Supported Versions | Notes |
21
+ | :--------- | :----------------- | :------------------------------------------------------------------------------------ |
22
+ | Vite | >= 2.0.0 | Full support with automatic client injection. |
23
+ | Webpack | >= 4.0.0 | Full support for both Webpack 4 and Webpack 5. |
24
+ | Rspack | >= 0.1.0 | Full support. |
25
+ | Rollup | >= 2.0.0 | Build-time injection supported. Client needs manual initialization (see main README). |
26
+ | esbuild | >= 0.14.0 | Build-time injection supported. Client needs manual initialization. |
27
+
9
28
  ## Core Implementation
10
29
 
11
30
  - **AST Transformation**: Uses Babel (`@babel/parser`, `@babel/traverse`) for React and `@vue/compiler-sfc` for Vue to parse source files.