@reticlehq/vite-plugin 3.8.1 → 3.8.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/dist/index.cjs +3 -1
- package/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +2 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -7351,7 +7351,9 @@ function connectModuleSource(options, devModule = null) {
|
|
|
7351
7351
|
const args = connectArgs(options);
|
|
7352
7352
|
const sdk = installedSdk(options.root ?? process.cwd());
|
|
7353
7353
|
const named = sdk.usesInstall ? "reticle, install" : "reticle";
|
|
7354
|
-
const
|
|
7354
|
+
const installArg = false === options.discoverStores ? "{ discoverStores: false }" : "";
|
|
7355
|
+
const call = sdk.usesInstall ? `install(${installArg});
|
|
7356
|
+
` : "";
|
|
7355
7357
|
const hot = `if (import.meta.hot) reticle.observeHotUpdates(import.meta.hot);
|
|
7356
7358
|
`;
|
|
7357
7359
|
const base = `import { ${named} } from '${sdk.specifier}';
|
package/dist/index.d.cts
CHANGED
|
@@ -70,6 +70,11 @@ export interface ReticleVitePluginOptions {
|
|
|
70
70
|
sourceMapping?: boolean;
|
|
71
71
|
/** Auto-inject the dev-gated reticle.connect call. Default true. */
|
|
72
72
|
inject?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Auto-register context stores found in the React fiber tree (Redux, QueryClient, etc.).
|
|
75
|
+
* Default true. Set false to disable store discovery in React apps.
|
|
76
|
+
*/
|
|
77
|
+
discoverStores?: boolean;
|
|
73
78
|
/**
|
|
74
79
|
* This build is an Electron/Tauri renderer. Changes two things a desktop shell needs and a web app
|
|
75
80
|
* must not get:
|
package/dist/index.d.ts
CHANGED
|
@@ -70,6 +70,11 @@ export interface ReticleVitePluginOptions {
|
|
|
70
70
|
sourceMapping?: boolean;
|
|
71
71
|
/** Auto-inject the dev-gated reticle.connect call. Default true. */
|
|
72
72
|
inject?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Auto-register context stores found in the React fiber tree (Redux, QueryClient, etc.).
|
|
75
|
+
* Default true. Set false to disable store discovery in React apps.
|
|
76
|
+
*/
|
|
77
|
+
discoverStores?: boolean;
|
|
73
78
|
/**
|
|
74
79
|
* This build is an Electron/Tauri renderer. Changes two things a desktop shell needs and a web app
|
|
75
80
|
* must not get:
|
package/dist/index.js
CHANGED
|
@@ -232,7 +232,8 @@ export function connectModuleSource(options, devModule = null) {
|
|
|
232
232
|
const args = connectArgs(options);
|
|
233
233
|
const sdk = installedSdk(options.root ?? process.cwd());
|
|
234
234
|
const named = sdk.usesInstall ? 'reticle, install' : 'reticle';
|
|
235
|
-
const
|
|
235
|
+
const installArg = false === options.discoverStores ? '{ discoverStores: false }' : '';
|
|
236
|
+
const call = sdk.usesInstall ? `install(${installArg});\n` : '';
|
|
236
237
|
// The only place in a Vite app that can see hot updates. `import.meta.hot` exists per module and
|
|
237
238
|
// only for modules Vite serves through its own transform; the SDK is a dependency, pre-bundled by
|
|
238
239
|
// the optimizer, and gets no hot context however it is written — so the channel is handed to it
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reticlehq/vite-plugin",
|
|
3
|
-
"version": "3.8.
|
|
3
|
+
"version": "3.8.2",
|
|
4
4
|
"description": "Vite plugin for Reticle: dev-only source-map stamping plus auto-injected reticle.connect(). apply:'serve' guarantees it never ships to production.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -41,15 +41,15 @@
|
|
|
41
41
|
],
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@babel/core": "^7.26.0",
|
|
44
|
-
"@reticlehq/
|
|
45
|
-
"@reticlehq/
|
|
44
|
+
"@reticlehq/core": "3.8.2",
|
|
45
|
+
"@reticlehq/babel-plugin": "3.8.2"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/babel__core": "^7.20.5",
|
|
49
49
|
"esbuild": "^0.28.2",
|
|
50
50
|
"svelte": "^5.57.1",
|
|
51
51
|
"vite": "^8",
|
|
52
|
-
"@reticlehq/react": "3.8.
|
|
52
|
+
"@reticlehq/react": "3.8.2"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"vite": ">=4"
|