@base44-preview/vite-plugin 1.0.30-pr.110.6304e06 → 1.0.30-pr.110.899bff8
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/package.json
CHANGED
|
@@ -29,7 +29,7 @@ It adds two HTML `data-*` attributes to every JSX element:
|
|
|
29
29
|
| Condition | Where | Why |
|
|
30
30
|
|-----------|-------|-----|
|
|
31
31
|
| `MODAL_SANDBOX_ID` env var is set | `index.ts:8` | Only runs inside Modal sandbox containers |
|
|
32
|
-
|
|
|
32
|
+
| Vite mode is `"development"` | `apply: (config) => config.mode === "development"` | No overhead in production builds |
|
|
33
33
|
| File is `.js`, `.jsx`, `.ts`, or `.tsx` | `id.match(/\.(jsx?\|tsx?)$/)` | Only JSX-capable files |
|
|
34
34
|
| File is NOT in `node_modules` | `id.includes("node_modules")` | Skip third-party code |
|
|
35
35
|
| File is NOT `visual-edit-agent` | `id.includes("visual-edit-agent")` | Don't instrument the agent itself |
|
|
@@ -37,8 +37,7 @@ It adds two HTML `data-*` attributes to every JSX element:
|
|
|
37
37
|
### Execution Timeline
|
|
38
38
|
|
|
39
39
|
```
|
|
40
|
-
1. npm run dev
|
|
41
|
-
regardless of mode)
|
|
40
|
+
1. npm run dev
|
|
42
41
|
2. Vite starts, loads plugin config
|
|
43
42
|
3. index.ts checks: isRunningInSandbox = !!process.env.MODAL_SANDBOX_ID
|
|
44
43
|
4. If true → registers visualEditPlugin() in the plugin pipeline
|