@inspecto-dev/plugin 0.2.0-alpha.1 → 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.
- package/README.md +19 -0
- package/dist/index.cjs +428 -101
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +433 -102
- package/dist/index.js.map +1 -1
- package/dist/legacy/rspack/index.cjs +399 -97
- package/dist/legacy/rspack/index.cjs.map +1 -1
- package/dist/legacy/rspack/index.js +404 -98
- package/dist/legacy/rspack/index.js.map +1 -1
- package/dist/legacy/rspack/loader.cjs +8 -1
- package/dist/legacy/rspack/loader.cjs.map +1 -1
- package/dist/legacy/rspack/loader.js +8 -1
- package/dist/legacy/rspack/loader.js.map +1 -1
- package/dist/legacy/webpack4/index.cjs +977 -0
- package/dist/legacy/webpack4/index.cjs.map +1 -0
- package/dist/legacy/webpack4/index.d.cts +8 -0
- package/dist/legacy/webpack4/index.d.ts +8 -0
- package/dist/legacy/webpack4/index.js +953 -0
- package/dist/legacy/webpack4/index.js.map +1 -0
- package/dist/legacy/webpack4/loader.cjs +347 -0
- package/dist/legacy/webpack4/loader.cjs.map +1 -0
- package/dist/legacy/webpack4/loader.d.cts +3 -0
- package/dist/legacy/webpack4/loader.d.ts +3 -0
- package/dist/legacy/webpack4/loader.js +314 -0
- package/dist/legacy/webpack4/loader.js.map +1 -0
- package/dist/rollup.cjs +428 -101
- package/dist/rollup.cjs.map +1 -1
- package/dist/rollup.js +433 -102
- package/dist/rollup.js.map +1 -1
- package/dist/rspack.cjs +428 -101
- package/dist/rspack.cjs.map +1 -1
- package/dist/rspack.js +433 -102
- package/dist/rspack.js.map +1 -1
- package/dist/vite.cjs +428 -101
- package/dist/vite.cjs.map +1 -1
- package/dist/vite.js +433 -102
- package/dist/vite.js.map +1 -1
- package/dist/webpack.cjs +428 -101
- package/dist/webpack.cjs.map +1 -1
- package/dist/webpack.js +433 -102
- package/dist/webpack.js.map +1 -1
- 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.
|