@pygmalionjs/pygmalion 0.2.13 → 0.2.15

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 CHANGED
@@ -86,6 +86,18 @@ When the mirror preview reloads the host Vite configuration,
86
86
  `PYGMALION_PREVIEW_MODE=1` prevents the integration plugins from starting
87
87
  recursively.
88
88
 
89
+ Mirror and session previews run as their own Vite processes, so the mode you
90
+ pass to the editor does not reach them. Set `preview.mode` when a screen only
91
+ exists under a specific env file — a feature flag that has to be off, a mock
92
+ profile a recipe depends on:
93
+
94
+ ```ts
95
+ export default definePygmalionProject({
96
+ // ...
97
+ preview: { mode: "e2e" },
98
+ });
99
+ ```
100
+
89
101
  ## Register screens and scenarios
90
102
 
91
103
  The host owns application-specific routes, fixtures, authentication, mock data,