@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base44-preview/vite-plugin",
3
- "version": "1.0.30-pr.110.6304e06",
3
+ "version": "1.0.30-pr.110.899bff8",
4
4
  "description": "The Vite plugin for base44 based applications",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -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
- | Dev **server** in `"development"` mode | `apply: (config, env) => env.command === "serve" && config.mode === "development"` | The injected `data-*` markers are only consumed by the visual-edit agent in the live preview, which the dev server serves. Builds never use them — including `vite build --mode development` (the platform's validation build), where instrumenting user code once produced compile errors on code that wasn't on disk |
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 (dev SERVER only — `vite build` never registers this plugin,
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